Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit d81e908

Browse files
authored
Merge pull request #3876 from weaveworks/k8s-disable-hostpid
For K8s, stop running in host PID namespace
2 parents 9bb1466 + a0ac81b commit d81e908

7 files changed

+7
-7
lines changed

prog/weave-kube/weave-daemonset-k8s-1.11.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ items:
177177
readOnly: false
178178
hostNetwork: true
179179
dnsPolicy: ClusterFirstWithHostNet
180-
hostPID: true
180+
hostPID: false
181181
restartPolicy: Always
182182
securityContext:
183183
seLinuxOptions: {}

prog/weave-kube/weave-daemonset-k8s-1.6.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ items:
148148
securityContext:
149149
privileged: true
150150
hostNetwork: true
151-
hostPID: true
151+
hostPID: false
152152
restartPolicy: Always
153153
securityContext:
154154
seLinuxOptions: {}

prog/weave-kube/weave-daemonset-k8s-1.7.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ items:
164164
mountPath: /run/xtables.lock
165165
readOnly: false
166166
hostNetwork: true
167-
hostPID: true
167+
hostPID: false
168168
restartPolicy: Always
169169
securityContext:
170170
seLinuxOptions: {}

prog/weave-kube/weave-daemonset-k8s-1.8.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ items:
173173
mountPath: /run/xtables.lock
174174
readOnly: false
175175
hostNetwork: true
176-
hostPID: true
176+
hostPID: false
177177
restartPolicy: Always
178178
securityContext:
179179
seLinuxOptions: {}

prog/weave-kube/weave-daemonset-k8s-1.9.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ items:
177177
readOnly: false
178178
hostNetwork: true
179179
dnsPolicy: ClusterFirstWithHostNet
180-
hostPID: true
180+
hostPID: false
181181
restartPolicy: Always
182182
securityContext:
183183
seLinuxOptions: {}

test/840_weave_kube_3_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fi
5252
# Ensure Kubernetes uses locally built container images and inject code coverage environment variable (or do nothing depending on $COVERAGE):
5353
sed -e "s%imagePullPolicy: Always%imagePullPolicy: Never%" \
5454
-e "s%env:%$WEAVE_ENV_VARS%" \
55-
"$(dirname "$0")/../prog/weave-kube/weave-daemonset-k8s-1.9.yaml" | run_on "$HOST1" "$KUBECTL apply -n kube-system -f -"
55+
"$(dirname "$0")/../prog/weave-kube/weave-daemonset-k8s-1.11.yaml" | run_on "$HOST1" "$KUBECTL apply -n kube-system -f -"
5656

5757
sleep 2
5858

test/860_weave_kube_portmap_3_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function setup_kubernetes_cluster {
5050
# Ensure Kubernetes uses locally built container images and inject code coverage environment variable (or do nothing depending on $COVERAGE):
5151
sed -e "s%imagePullPolicy: Always%imagePullPolicy: Never%" \
5252
-e "s%env:%$COVERAGE_ARGS%" \
53-
"$(dirname "$0")/../prog/weave-kube/weave-daemonset-k8s-1.7.yaml" | run_on "$HOST1" "$KUBECTL apply -n kube-system -f -"
53+
"$(dirname "$0")/../prog/weave-kube/weave-daemonset-k8s-1.11.yaml" | run_on "$HOST1" "$KUBECTL apply -n kube-system -f -"
5454
}
5555

5656
function weave_connected {

0 commit comments

Comments
 (0)