Skip to content

Commit e13b00e

Browse files
committed
Merge pull request kubernetes#12436 from runningwild/PR
Install rkt to a directory that doesn't require environment variables…
2 parents 9bda3c5 + f456e58 commit e13b00e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cluster/gce/coreos/node.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,13 @@ coreos:
9191
[Service]
9292
Type=oneshot
9393
EnvironmentFile=/etc/kube-env
94+
ExecStartPre=/usr/bin/rm -rf /opt/rkt
9495
ExecStartPre=/usr/bin/mkdir -p /opt/rkt
9596
ExecStartPre=/usr/bin/wget \
9697
-O /opt/rkt/rkt-v${RKT_VERSION}.tar.gz \
9798
https://github.com/coreos/rkt/releases/download/v${RKT_VERSION}/rkt-v${RKT_VERSION}.tar.gz
98-
ExecStart=/usr/bin/tar xzvf /opt/rkt/rkt-v${RKT_VERSION}.tar.gz -C /opt --overwrite
99+
ExecStartPre=/usr/bin/tar xzvf /opt/rkt/rkt-v${RKT_VERSION}.tar.gz -C /opt --overwrite
100+
ExecStart=/usr/bin/mv /opt/rkt-v${RKT_VERSION} /opt/rkt/rkt
99101
100102
- name: kubernetes-install-minion.service
101103
command: start
@@ -200,4 +202,4 @@ coreos:
200202
After=kubernetes-install-rkt.service
201203
[Service]
202204
EnvironmentFile=/etc/kube-env
203-
ExecStart=/opt/rkt-v${RKT_VERSION}/rkt metadata-service
205+
ExecStart=/opt/rkt/rkt metadata-service

0 commit comments

Comments
 (0)