aboutsummaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/stateful_set.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/stateful_set.yaml')
-rw-r--r--kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/stateful_set.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/stateful_set.yaml b/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/stateful_set.yaml
new file mode 100644
index 00000000..e4ed3366
--- /dev/null
+++ b/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/stateful_set.yaml
@@ -0,0 +1,30 @@
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: {{ .Values.operator.name }}
+ namespace: {{ .Release.Namespace }}
+spec:
+ serviceName: {{ .Values.operator.name }}
+ replicas: 1
+ selector:
+ matchLabels:
+ name: {{ .Values.operator.name }}
+ template:
+ metadata:
+ labels:
+ name: {{ .Values.operator.name }}
+ spec:
+ securityContext:
+ runAsNonRoot: true
+ runAsUser: 65534
+ runAsGroup: 65534
+ containers:
+ - name: {{ .Values.operator.name }}
+ image: {{ .Values.image.repository}}:{{ .Values.image.tag }}
+ command:
+ - m3db-operator
+ imagePullPolicy: Always
+ env:
+ - name: ENVIRONMENT
+ value: {{ .Values.environment }}
+ serviceAccount: {{ .Values.operator.name }}