-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeployment.yaml
116 lines (116 loc) · 3.53 KB
/
deployment.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
# This manifest is auto-generated from the helm chart, do not modify!
# Source: amalthea/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: amalthea
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/name: amalthea
app.kubernetes.io/instance: amalthea
app.kubernetes.io/version: "latest"
spec:
# There must be only one instance of the kopf operator handling the
# same custom resource object at a time.
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: amalthea
app.kubernetes.io/instance: amalthea
template:
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/name: amalthea
app.kubernetes.io/instance: amalthea
spec:
serviceAccountName: amalthea
securityContext:
{}
initContainers:
- name: init-certificates
image: "renku/certificates:0.0.2"
securityContext:
allowPrivilegeEscalation: false
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
volumeMounts:
- name: etc-ssl-certs
mountPath: /etc/ssl/certs/
containers:
- name: amalthea
securityContext:
allowPrivilegeEscalation: false
runAsGroup: 1000
runAsNonRoot: true
runAsUser: 1000
image: "renku/amalthea:latest"
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 300
args:
- "--verbose"
- "--log-format=json"
- "--namespace=default"
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
env:
- name: CRD_API_GROUP
value: amalthea.dev
- name: CRD_API_VERSION
value: v1alpha1
- name: CRD_NAME
value: JupyterServer
- name: AMALTHEA_SELECTOR_LABELS
value: |
app.kubernetes.io/name: amalthea
app.kubernetes.io/instance: amalthea
- name: EXTRA_CHILD_RESOURCES
value: "[]"
- name: JUPYTER_SERVER_IDLE_CHECK_INTERVAL_SECONDS
value: "300"
- name: JUPYTER_SERVER_RESOURCE_CHECK_ENABLED
value: "true"
- name: JUPYTER_SERVER_RESOURCE_CHECK_INTERVAL_SECONDS
value: "30"
- name: CPU_USAGE_MILLICORES_IDLE_THRESHOLD
value: "500"
- name: METRICS_ENABLED
value: "false"
- name: METRICS_PORT
value: "8765"
- name: METRICS_EXTRA_LABELS
value: "[]"
- name: REQUESTS_CA_BUNDLE
value: /etc/ssl/certs/ca-certificates.crt
- name: SSL_CERT_FILE
value: /etc/ssl/certs/ca-certificates.crt
- name: AUDITLOG_ENABLED
value: "false"
- name: AUDITLOG_EXTRA_LABELS
value: "[]"
volumeMounts:
- name: config
mountPath: /app/config
- name: etc-ssl-certs
mountPath: /etc/ssl/certs/
readOnly: true
volumes:
- name: config
configMap:
name: amalthea-config
- name: etc-ssl-certs
emptyDir:
medium: "Memory"