forked from kubeflow/pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stateful-set.yaml
45 lines (45 loc) · 1.17 KB
/
stateful-set.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: metacontroller
name: metacontroller
spec:
replicas: 1
selector:
matchLabels:
app: metacontroller
serviceName: ""
template:
metadata:
labels:
app: metacontroller
annotations:
sidecar.istio.io/inject: "false"
spec:
containers:
- resources:
limits:
cpu: '1'
memory: 1Gi
requests:
cpu: 100m
memory: 256Mi
command:
- /usr/bin/metacontroller
- --zap-log-level=4
- '--discovery-interval=3600s' # less insane than 10 seconds
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
privileged: false
allowPrivilegeEscalation: false
name: metacontroller
image: 'docker.io/metacontrollerio/metacontroller:v2.0.4'
serviceAccountName: meta-controller-service
# Workaround for https://github.com/kubernetes-sigs/kustomize/issues/677
volumeClaimTemplates: []