88 lines
2.5 KiB
YAML
88 lines
2.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ template "storageos.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app: {{ template "storageos.name" . }}
|
|
app.kubernetes.io/component: operator
|
|
control-plane: storageos-operator
|
|
chart: {{ template "storageos.chart" . }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "storageos.name" . }}
|
|
app.kubernetes.io/component: operator
|
|
control-plane: storageos-operator
|
|
release: {{ .Release.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ template "storageos.name" . }}
|
|
app.kubernetes.io/component: operator
|
|
control-plane: storageos-operator
|
|
release: {{ .Release.Name }}
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- --config=operator_config.yaml
|
|
command:
|
|
- /manager
|
|
env:
|
|
- name: POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
envFrom:
|
|
- configMapRef:
|
|
name: storageos-related-images
|
|
image: "{{ .Values.operator.image.repository }}:{{ .Values.operator.image.tag }}"
|
|
imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8081
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
name: manager
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 8081
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
limits:
|
|
cpu: 250m
|
|
memory: 200Mi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 100Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
volumeMounts:
|
|
- mountPath: /operator_config.yaml
|
|
name: storageos-operator
|
|
subPath: operator_config.yaml
|
|
- args:
|
|
- --secure-listen-address=0.0.0.0:8443
|
|
- --upstream=http://127.0.0.1:8080/
|
|
- --logtostderr=true
|
|
- --v=10
|
|
image: quay.io/brancz/kube-rbac-proxy:v0.10.0
|
|
name: kube-rbac-proxy
|
|
ports:
|
|
- containerPort: 8443
|
|
name: https
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
serviceAccountName: {{ template "storageos.serviceAccountName" . }}
|
|
terminationGracePeriodSeconds: 10
|
|
volumes:
|
|
- configMap:
|
|
name: storageos-operator
|
|
name: storageos-operator
|