Permalink
Browse files

Added permissions fix for container logs.

  • Loading branch information...
gopherstein committed Aug 16, 2017
1 parent e3b7c14 commit 5c1767a36a67a89e402d269361086d61ea011ab0
@@ -14,7 +14,6 @@ write_files:
curl -sSL -o /opt/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl
chmod +x /opt/bin/$FILE
chmod +x /opt/bin/kubectl
mkdir -p /var/log/containers
## Install Tiller ##
wget http://storage.googleapis.com/kubernetes-helm/helm-v2.1.3-linux-amd64.tar.gz --directory-prefix=/tmp/
@@ -590,8 +589,8 @@ coreos:
Environment=KUBELET_IMAGE_TAG=v{{ .KubernetesVersion }}_coreos.0
Environment="RKT_RUN_ARGS=--volume=resolv,kind=host,source=/etc/resolv.conf \
--mount volume=resolv,target=/etc/resolv.conf \
--volume log,kind=host,source=/var/log/containers/ \
--mount volume=log,target=/var/log/containers/ \
--volume log,kind=host,source=/var/log/ \
--mount volume=log,target=/var/log/ \
--uuid-file-save=/var/run/kubelet-pod.uuid"
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid
ExecStartPre=/bin/bash -c "/opt/bin/download-k8s-binary"
@@ -29,7 +29,6 @@ write_files:
chmod 755 ./*
/opt/bin/packet-block-storage/packet-block-storage-attach
mkdir -p /var/log/containers
cd /tmp
wget https://github.com/digitalocean/doctl/releases/download/v1.4.0/doctl-1.4.0-linux-amd64.tar.gz
@@ -142,8 +141,8 @@ coreos:
--mount volume=multipath,target=/etc/multipath/ \
--volume packet,kind=host,source=/opt/bin/packet-block-storage/ \
--mount volume=packet,target=/opt/bin/packet-block-storage/ \
--volume log,kind=host,source=/var/log/containers/ \
--mount volume=log,target=/var/log/containers/ \
--volume log,kind=host,source=/var/log/ \
--mount volume=log,target=/var/log/ \
--uuid-file-save=/var/run/kubelet-pod.uuid"
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid
ExecStartPre=/bin/bash -c "/opt/bin/download-k8s-binary kubelet"
@@ -14,7 +14,6 @@ write_files:
curl -sSL -o /opt/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl
chmod +x /opt/bin/$FILE
chmod +x /opt/bin/kubectl
mkdir -p /var/log/containers
## Install Tiller ##
@@ -592,8 +591,8 @@ coreos:
Environment=KUBELET_IMAGE_TAG=v{{ .KubernetesVersion }}_coreos.0
Environment="RKT_RUN_ARGS=--volume=resolv,kind=host,source=/etc/resolv.conf \
--mount volume=resolv,target=/etc/resolv.conf \
--volume log,kind=host,source=/var/log/containers/ \
--mount volume=log,target=/var/log/containers/ \
--volume log,kind=host,source=/var/log/ \
--mount volume=log,target=/var/log/ \
--uuid-file-save=/var/run/kubelet-pod.uuid"
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid
ExecStartPre=/bin/bash -c "/opt/bin/download-k8s-binary"
@@ -16,7 +16,6 @@ write_files:
curl -sSL -o /opt/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl
chmod +x /opt/bin/$FILE
chmod +x /opt/bin/kubectl
mkdir -p /var/log/containers
curl -sSL -o /opt/bin/cni.tar.gz https://storage.googleapis.com/kubernetes-release/network-plugins/cni-07a8a28637e97b22eb8dfe710eeae1344f69d16e.tar.gz
tar xzf "/opt/bin/cni.tar.gz" -C "/opt/bin" --overwrite
@@ -145,8 +144,8 @@ coreos:
--mount volume=packet,target=/opt/bin/packet-block-storage/ \
--volume doconfig,kind=host,source=/root/.config/doctl/config.yaml \
--mount volume=doconfig,target=/root/.config/doctl/config.yaml \
--volume log,kind=host,source=/var/log/containers/ \
--mount volume=log,target=/var/log/containers/ \
--volume log,kind=host,source=/var/log/ \
--mount volume=log,target=/var/log/ \
--uuid-file-save=/var/run/kubelet-pod.uuid"
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid
ExecStartPre=/bin/bash -c "/opt/bin/download-k8s-binary kubelet"
@@ -14,7 +14,6 @@ write_files:
curl -sSL -o /opt/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl
chmod +x /opt/bin/$FILE
chmod +x /opt/bin/kubectl
mkdir -p /var/log/containers
## Install Tiller ##
@@ -592,8 +591,8 @@ coreos:
Environment=KUBELET_IMAGE_TAG=v{{ .KubernetesVersion }}_coreos.0
Environment="RKT_RUN_ARGS=--volume=resolv,kind=host,source=/etc/resolv.conf \
--mount volume=resolv,target=/etc/resolv.conf \
--volume log,kind=host,source=/var/log/containers/ \
--mount volume=log,target=/var/log/containers/ \
--volume log,kind=host,source=/var/log/ \
--mount volume=log,target=/var/log/ \
--uuid-file-save=/var/run/kubelet-pod.uuid"
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid
ExecStartPre=/bin/bash -c "/opt/bin/download-k8s-binary"
@@ -16,7 +16,6 @@ write_files:
curl -sSL -o /opt/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl
chmod +x /opt/bin/$FILE
chmod +x /opt/bin/kubectl
mkdir -p /var/log/containers
curl -sSL -o /opt/bin/cni.tar.gz https://storage.googleapis.com/kubernetes-release/network-plugins/cni-07a8a28637e97b22eb8dfe710eeae1344f69d16e.tar.gz
tar xzf "/opt/bin/cni.tar.gz" -C "/opt/bin" --overwrite
@@ -145,8 +144,8 @@ coreos:
--mount volume=packet,target=/opt/bin/packet-block-storage/ \
--volume doconfig,kind=host,source=/root/.config/doctl/config.yaml \
--mount volume=doconfig,target=/root/.config/doctl/config.yaml \
--volume log,kind=host,source=/var/log/containers/ \
--mount volume=log,target=/var/log/containers/ \
--volume log,kind=host,source=/var/log/ \
--mount volume=log,target=/var/log/ \
--uuid-file-save=/var/run/kubelet-pod.uuid"
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid
ExecStartPre=/bin/bash -c "/opt/bin/download-k8s-binary kubelet"

0 comments on commit 5c1767a

Please sign in to comment.