185 lines
6.1 KiB
YAML
185 lines
6.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: camunda-platform
|
|
app.kubernetes.io/component: optimize
|
|
app.kubernetes.io/instance: camunda
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: camunda-contour
|
|
app.kubernetes.io/part-of: camunda-platform
|
|
app.kubernetes.io/version: 8.6.2
|
|
helm.sh/chart: camunda-contour-11.0.14
|
|
name: camunda-optimize
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: camunda-platform
|
|
app.kubernetes.io/component: optimize
|
|
app.kubernetes.io/instance: camunda
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: camunda-contour
|
|
app.kubernetes.io/part-of: camunda-platform
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
checksum/config: fd69979d256b53dfe55bc903d3905582eed9e59ced7f7a947ca1524066905a60
|
|
proxy.istio.io/config: '{ "holdApplicationUntilProxyStarts": true }'
|
|
traffic.sidecar.istio.io/excludeOutboundPorts: '8200'
|
|
vault.hashicorp.com/agent-init-first: 'true'
|
|
vault.hashicorp.com/agent-inject: 'true'
|
|
vault.hashicorp.com/agent-inject-secret-CAMUNDA_IDENTITY_CLIENT_SECRET: secrets/data/camunda/identity-components
|
|
vault.hashicorp.com/agent-inject-template-CAMUNDA_IDENTITY_CLIENT_SECRET: '{{- with secret "secrets/data/camunda/identity-components" -}}
|
|
|
|
{{ index .Data.data "optimize-secret" }}
|
|
|
|
{{- end -}}'
|
|
vault.hashicorp.com/agent-pre-populate-only: 'true'
|
|
vault.hashicorp.com/auth-path: auth/kubernetes
|
|
vault.hashicorp.com/role: camunda
|
|
labels:
|
|
app: camunda-platform
|
|
app.kubernetes.io/component: optimize
|
|
app.kubernetes.io/instance: camunda
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: camunda-contour
|
|
app.kubernetes.io/part-of: camunda-platform
|
|
app.kubernetes.io/version: 8.6.2
|
|
helm.sh/chart: camunda-contour-11.0.14
|
|
spec:
|
|
containers:
|
|
- command:
|
|
- /bin/sh
|
|
- -ec
|
|
- "\n\nif [ -f \"/vault/secrets/CAMUNDA_IDENTITY_CLIENT_SECRET\" ]; then\n export CAMUNDA_IDENTITY_CLIENT_SECRET=\"$(cat /vault/secrets/CAMUNDA_IDENTITY_CLIENT_SECRET)\"\nelif [ -f \"/vault/secrets/camunda_identity_client_secret\" ]; then\n export CAMUNDA_IDENTITY_CLIENT_SECRET=\"$(cat /vault/secrets/camunda_identity_client_secret)\"\nfi\n exec '/sbin/tini' '--' './optimize.sh'\n"
|
|
env:
|
|
- name: CAMUNDA_LICENSE_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: CAMUNDA_LICENSE_KEY
|
|
name: camunda-camunda-contour-license
|
|
- name: OPTIMIZE_ELASTICSEARCH_HOST
|
|
value: camunda-elasticsearch
|
|
- name: OPTIMIZE_ELASTICSEARCH_HTTP_PORT
|
|
value: '9200'
|
|
- name: SPRING_PROFILES_ACTIVE
|
|
value: ccsm
|
|
envFrom:
|
|
- configMapRef:
|
|
name: camunda-camunda-contour-identity-env-vars
|
|
image: cr.yandex/crp3ccidau046kdj8g9q/contour/camunda/optimize:8.6.2
|
|
imagePullPolicy: IfNotPresent
|
|
name: optimize
|
|
ports:
|
|
- containerPort: 8090
|
|
name: http
|
|
protocol: TCP
|
|
- containerPort: 8092
|
|
name: management
|
|
protocol: TCP
|
|
readinessProbe:
|
|
failureThreshold: 5
|
|
httpGet:
|
|
path: /api/readyz
|
|
port: http
|
|
scheme: HTTP
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
timeoutSeconds: 1
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 600m
|
|
memory: 1Gi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
privileged: false
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
runAsUser: 1001
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
volumeMounts:
|
|
- mountPath: /tmp
|
|
name: tmp
|
|
- mountPath: /camunda
|
|
name: camunda
|
|
- mountPath: /optimize/config/environment-config.yaml
|
|
name: environment-config
|
|
subPath: environment-config.yaml
|
|
- mountPath: /optimize/config/application-ccsm.yaml
|
|
name: environment-config
|
|
subPath: application-ccsm.yaml
|
|
imagePullSecrets:
|
|
- name: regcred
|
|
initContainers:
|
|
- command:
|
|
- ./upgrade/upgrade.sh
|
|
- --skip-warning
|
|
env:
|
|
- name: CAMUNDA_LICENSE_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: CAMUNDA_LICENSE_KEY
|
|
name: camunda-camunda-contour-license
|
|
- name: OPTIMIZE_ELASTICSEARCH_HOST
|
|
value: camunda-elasticsearch
|
|
- name: OPTIMIZE_ELASTICSEARCH_HTTP_PORT
|
|
value: '9200'
|
|
image: cr.yandex/crp3ccidau046kdj8g9q/contour/camunda/optimize:8.6.2
|
|
name: migration
|
|
resources:
|
|
limits:
|
|
cpu: 2000m
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 600m
|
|
memory: 1Gi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
privileged: false
|
|
readOnlyRootFilesystem: true
|
|
runAsNonRoot: true
|
|
runAsUser: 1001
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
volumeMounts:
|
|
- mountPath: /tmp
|
|
name: tmp
|
|
- mountPath: /camunda
|
|
name: camunda
|
|
- mountPath: /optimize/config/environment-config.yaml
|
|
name: environment-config
|
|
subPath: environment-config.yaml
|
|
- mountPath: /optimize/config/application-ccsm.yaml
|
|
name: environment-config
|
|
subPath: application-ccsm.yaml
|
|
nodeSelector:
|
|
dedicated: processing
|
|
securityContext:
|
|
fsGroup: 1001
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
serviceAccountName: camunda-optimize
|
|
tolerations:
|
|
- effect: NoSchedule
|
|
key: dedicated
|
|
operator: Equal
|
|
value: processing
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: tmp
|
|
- emptyDir: {}
|
|
name: camunda
|
|
- configMap:
|
|
defaultMode: 492
|
|
name: camunda-optimize-configuration
|
|
name: environment-config
|