Skip to content

Commit 73c8340

Browse files
authored
Ensure etcd stateful set has required capabilities to run on OpenShift (#2069)
Summary: Ensure etcd stateful set has required capabilities to run on OpenShift When using the etcd metadata store on an Openshift cluster, the container gets stuck in its start up script and continuously prints the following error. ``` Waiting for pl-etcd-1.pl-etcd.pl to come up ping: permission denied (are you root?) Waiting for pl-etcd-1.pl-etcd.pl to come up ping: permission denied (are you root?) ``` The etcd stateful set requires an additional capability, which was missed when the other services had stricter security context settings added. This change also requires the following `SecurityContextConstraints` changes (pixie-io/docs.px.dev#292) Relevant Issues: N/A Type of change: /kind bug Test Plan: Deployed the non-operator version of Pixie to an Openshift cluster and verified etcd is scheduled now - [x] Verified etcd metadata deployment with these changes works on GKE cluster Changelog Message: Fixed an issue where the etcd metadata store wouldn't schedule on Openshift clusters Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent b7319d1 commit 73c8340

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

k8s/vizier_deps/base/etcd/etcd_statefulset.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ spec:
106106
periodSeconds: 10
107107
successThreshold: 1
108108
timeoutSeconds: 5
109+
securityContext:
110+
capabilities:
111+
add:
112+
- NET_RAW
113+
seccompProfile:
114+
type: RuntimeDefault
109115
volumeMounts:
110116
- mountPath: /var/run/etcd
111117
name: etcd-data
@@ -132,6 +138,9 @@ spec:
132138
secretName: etcd-client-tls-certs
133139
- emptyDir: {}
134140
name: etcd-data
141+
securityContext:
142+
seccompProfile:
143+
type: RuntimeDefault
135144
tolerations:
136145
- key: "kubernetes.io/arch"
137146
operator: "Equal"

0 commit comments

Comments
 (0)