Skip to content

Commit

Permalink
Fix perm errors with selinux enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
derekwaynecarr committed Aug 22, 2018
1 parent 00066a9 commit 0fa4eb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions modules/bootkube/resources/bootkube.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ echo "Rendering Kubernetes core manifests..."

# shellcheck disable=SC2154
/usr/bin/docker run \
--volume "$(pwd)":/assets \
--volume /etc/kubernetes:/etc/kubernetes \
--volume "$(pwd)":/assets:z \
--volume /etc/kubernetes:/etc/kubernetes:z \
"${kube_core_renderer_image}" \
--config=/assets/kco-config.yaml \
--output=/assets
Expand All @@ -16,7 +16,7 @@ echo "Rendering TNC manifests..."
# shellcheck disable=SC2154
/usr/bin/docker run \
--user 0 \
--volume "$(pwd)":/assets \
--volume "$(pwd)":/assets:z \
"${tnc_operator_image}" \
--config=/assets/tnco-config.yaml \
--render-bootstrap=true \
Expand All @@ -37,7 +37,7 @@ echo "Starting etcd certificate signer..."
# shellcheck disable=SC2154,SC2034
signer_id=$(/usr/bin/docker run -d \
--tmpfs /tmp \
--volume /opt/tectonic/tls:/opt/tectonic/tls:ro \
--volume /opt/tectonic/tls:/opt/tectonic/tls:ro,z \
--network host \
"${etcd_cert_signer_image}" \
serve \
Expand All @@ -61,7 +61,7 @@ while true; do
--rm \
--name etcdctl \
--env ETCDCTL_API=3 \
--volume /opt/tectonic/tls:/opt/tectonic/tls:ro \
--volume /opt/tectonic/tls:/opt/tectonic/tls:ro,z \
"${etcdctl_image}" \
/usr/local/bin/etcdctl \
--dial-timeout=10m \
Expand Down Expand Up @@ -96,8 +96,8 @@ echo "Starting bootkube..."

# shellcheck disable=SC2154
/usr/bin/docker run \
--volume "$(pwd)":/assets \
--volume /etc/kubernetes:/etc/kubernetes \
--volume "$(pwd)":/assets:z \
--volume /etc/kubernetes:/etc/kubernetes:z \
--network=host \
--entrypoint=/bootkube \
"${bootkube_image}" \
Expand Down

0 comments on commit 0fa4eb1

Please sign in to comment.