Change bootstrap.service container from rkt to docker
* Use docker to run `bootstrap.service` container * Background https://github.com/poseidon/typhoon/pull/855
This commit is contained in:
parent
79deb8a967
commit
152c7d86bd
|
@ -17,8 +17,11 @@ Notable changes between versions.
|
||||||
### Flatcar Linux
|
### Flatcar Linux
|
||||||
|
|
||||||
* Rename `container-linux` modules to `flatcar-linux` ([#858](https://github.com/poseidon/typhoon/issues/858)) (**action required**)
|
* Rename `container-linux` modules to `flatcar-linux` ([#858](https://github.com/poseidon/typhoon/issues/858)) (**action required**)
|
||||||
|
|
||||||
|
* Change on-host system containers from rkt to docker
|
||||||
* Change `etcd-member.service` container runnner from rkt to docker ([#867](https://github.com/poseidon/typhoon/pull/867))
|
* Change `etcd-member.service` container runnner from rkt to docker ([#867](https://github.com/poseidon/typhoon/pull/867))
|
||||||
* Change `kubelet.service` container runner from rkt to docker ([#855](https://github.com/poseidon/typhoon/pull/855))
|
* Change `kubelet.service` container runner from rkt-fly to docker ([#855](https://github.com/poseidon/typhoon/pull/855))
|
||||||
|
* Change `bootstrap.service` container runner from rkt to docker ([#873](https://github.com/poseidon/typhoon/pull/873))
|
||||||
* Change `delete-node.service` to use docker and an inline ExecStart ([#855](https://github.com/poseidon/typhoon/pull/855))
|
* Change `delete-node.service` to use docker and an inline ExecStart ([#855](https://github.com/poseidon/typhoon/pull/855))
|
||||||
* Fix local node delete oneshot on node shutdown ([#855](https://github.com/poseidon/typhoon/pull/855))
|
* Fix local node delete oneshot on node shutdown ([#855](https://github.com/poseidon/typhoon/pull/855))
|
||||||
* Remove CoreOS Container Linux Matchbox profiles ([#859](https://github.com/poseidon/typhoon/pull/858))
|
* Remove CoreOS Container Linux Matchbox profiles ([#859](https://github.com/poseidon/typhoon/pull/858))
|
||||||
|
|
|
@ -110,24 +110,20 @@ systemd:
|
||||||
contents: |
|
contents: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Kubernetes control plane
|
Description=Kubernetes control plane
|
||||||
|
Wants=docker.service
|
||||||
|
After=docker.service
|
||||||
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
WorkingDirectory=/opt/bootstrap
|
WorkingDirectory=/opt/bootstrap
|
||||||
ExecStart=/usr/bin/rkt run \
|
Environment=KUBELET_IMAGE=quay.io/poseidon/kubelet:v1.19.3
|
||||||
--trust-keys-from-https \
|
ExecStart=/usr/bin/docker run \
|
||||||
--volume config,kind=host,source=/etc/kubernetes/bootstrap-secrets \
|
-v /etc/kubernetes/bootstrap-secrets:/etc/kubernetes/secrets:ro \
|
||||||
--mount volume=config,target=/etc/kubernetes/secrets \
|
-v /opt/bootstrap/assets:/assets:ro \
|
||||||
--volume assets,kind=host,source=/opt/bootstrap/assets \
|
-v /opt/bootstrap/apply:/apply:ro \
|
||||||
--mount volume=assets,target=/assets \
|
--entrypoint=/apply \
|
||||||
--volume script,kind=host,source=/opt/bootstrap/apply \
|
$${KUBELET_IMAGE}
|
||||||
--mount volume=script,target=/apply \
|
|
||||||
--insecure-options=image \
|
|
||||||
docker://quay.io/poseidon/kubelet:v1.19.3 \
|
|
||||||
--net=host \
|
|
||||||
--dns=host \
|
|
||||||
--exec=/apply
|
|
||||||
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -110,24 +110,20 @@ systemd:
|
||||||
contents: |
|
contents: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Kubernetes control plane
|
Description=Kubernetes control plane
|
||||||
|
Wants=docker.service
|
||||||
|
After=docker.service
|
||||||
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
WorkingDirectory=/opt/bootstrap
|
WorkingDirectory=/opt/bootstrap
|
||||||
ExecStart=/usr/bin/rkt run \
|
Environment=KUBELET_IMAGE=quay.io/poseidon/kubelet:v1.19.3
|
||||||
--trust-keys-from-https \
|
ExecStart=/usr/bin/docker run \
|
||||||
--volume config,kind=host,source=/etc/kubernetes/bootstrap-secrets \
|
-v /etc/kubernetes/bootstrap-secrets:/etc/kubernetes/secrets:ro \
|
||||||
--mount volume=config,target=/etc/kubernetes/secrets \
|
-v /opt/bootstrap/assets:/assets:ro \
|
||||||
--volume assets,kind=host,source=/opt/bootstrap/assets \
|
-v /opt/bootstrap/apply:/apply:ro \
|
||||||
--mount volume=assets,target=/assets \
|
--entrypoint=/apply \
|
||||||
--volume script,kind=host,source=/opt/bootstrap/apply \
|
$${KUBELET_IMAGE}
|
||||||
--mount volume=script,target=/apply \
|
|
||||||
--insecure-options=image \
|
|
||||||
docker://quay.io/poseidon/kubelet:v1.19.3 \
|
|
||||||
--net=host \
|
|
||||||
--dns=host \
|
|
||||||
--exec=/apply
|
|
||||||
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -121,24 +121,20 @@ systemd:
|
||||||
contents: |
|
contents: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Kubernetes control plane
|
Description=Kubernetes control plane
|
||||||
|
Wants=docker.service
|
||||||
|
After=docker.service
|
||||||
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
WorkingDirectory=/opt/bootstrap
|
WorkingDirectory=/opt/bootstrap
|
||||||
ExecStart=/usr/bin/rkt run \
|
Environment=KUBELET_IMAGE=quay.io/poseidon/kubelet:v1.19.3
|
||||||
--trust-keys-from-https \
|
ExecStart=/usr/bin/docker run \
|
||||||
--volume config,kind=host,source=/etc/kubernetes/bootstrap-secrets \
|
-v /etc/kubernetes/bootstrap-secrets:/etc/kubernetes/secrets:ro \
|
||||||
--mount volume=config,target=/etc/kubernetes/secrets \
|
-v /opt/bootstrap/assets:/assets:ro \
|
||||||
--volume assets,kind=host,source=/opt/bootstrap/assets \
|
-v /opt/bootstrap/apply:/apply:ro \
|
||||||
--mount volume=assets,target=/assets \
|
--entrypoint=/apply \
|
||||||
--volume script,kind=host,source=/opt/bootstrap/apply \
|
$${KUBELET_IMAGE}
|
||||||
--mount volume=script,target=/apply \
|
|
||||||
--insecure-options=image \
|
|
||||||
docker://quay.io/poseidon/kubelet:v1.19.3 \
|
|
||||||
--net=host \
|
|
||||||
--dns=host \
|
|
||||||
--exec=/apply
|
|
||||||
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -120,24 +120,20 @@ systemd:
|
||||||
contents: |
|
contents: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Kubernetes control plane
|
Description=Kubernetes control plane
|
||||||
|
Wants=docker.service
|
||||||
|
After=docker.service
|
||||||
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
WorkingDirectory=/opt/bootstrap
|
WorkingDirectory=/opt/bootstrap
|
||||||
ExecStart=/usr/bin/rkt run \
|
Environment=KUBELET_IMAGE=quay.io/poseidon/kubelet:v1.19.3
|
||||||
--trust-keys-from-https \
|
ExecStart=/usr/bin/docker run \
|
||||||
--volume config,kind=host,source=/etc/kubernetes/bootstrap-secrets \
|
-v /etc/kubernetes/bootstrap-secrets:/etc/kubernetes/secrets:ro \
|
||||||
--mount volume=config,target=/etc/kubernetes/secrets \
|
-v /opt/bootstrap/assets:/assets:ro \
|
||||||
--volume assets,kind=host,source=/opt/bootstrap/assets \
|
-v /opt/bootstrap/apply:/apply:ro \
|
||||||
--mount volume=assets,target=/assets \
|
--entrypoint=/apply \
|
||||||
--volume script,kind=host,source=/opt/bootstrap/apply \
|
$${KUBELET_IMAGE}
|
||||||
--mount volume=script,target=/apply \
|
|
||||||
--insecure-options=image \
|
|
||||||
docker://quay.io/poseidon/kubelet:v1.19.3 \
|
|
||||||
--net=host \
|
|
||||||
--dns=host \
|
|
||||||
--exec=/apply
|
|
||||||
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -108,24 +108,20 @@ systemd:
|
||||||
contents: |
|
contents: |
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Kubernetes control plane
|
Description=Kubernetes control plane
|
||||||
|
Wants=docker.service
|
||||||
|
After=docker.service
|
||||||
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
ConditionPathExists=!/opt/bootstrap/bootstrap.done
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=true
|
RemainAfterExit=true
|
||||||
WorkingDirectory=/opt/bootstrap
|
WorkingDirectory=/opt/bootstrap
|
||||||
ExecStart=/usr/bin/rkt run \
|
Environment=KUBELET_IMAGE=quay.io/poseidon/kubelet:v1.19.3
|
||||||
--trust-keys-from-https \
|
ExecStart=/usr/bin/docker run \
|
||||||
--volume config,kind=host,source=/etc/kubernetes/bootstrap-secrets \
|
-v /etc/kubernetes/bootstrap-secrets:/etc/kubernetes/secrets:ro \
|
||||||
--mount volume=config,target=/etc/kubernetes/secrets \
|
-v /opt/bootstrap/assets:/assets:ro \
|
||||||
--volume assets,kind=host,source=/opt/bootstrap/assets \
|
-v /opt/bootstrap/apply:/apply:ro \
|
||||||
--mount volume=assets,target=/assets \
|
--entrypoint=/apply \
|
||||||
--volume script,kind=host,source=/opt/bootstrap/apply \
|
$${KUBELET_IMAGE}
|
||||||
--mount volume=script,target=/apply \
|
|
||||||
--insecure-options=image \
|
|
||||||
docker://quay.io/poseidon/kubelet:v1.19.3 \
|
|
||||||
--net=host \
|
|
||||||
--dns=host \
|
|
||||||
--exec=/apply
|
|
||||||
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
ExecStartPost=/bin/touch /opt/bootstrap/bootstrap.done
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in New Issue