CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/test/kubernetes/lucee/templates/deployment.yaml
Views: 1904
1
apiVersion: apps/v1
2
kind: Deployment
3
metadata:
4
name: {{ include "lucee.fullname" . }}
5
labels:
6
{{- include "lucee.labels" . | nindent 4 }}
7
spec:
8
{{- if not .Values.autoscaling.enabled }}
9
replicas: {{ .Values.replicaCount }}
10
{{- end }}
11
selector:
12
matchLabels:
13
{{- include "lucee.selectorLabels" . | nindent 6 }}
14
template:
15
metadata:
16
{{- with .Values.podAnnotations }}
17
annotations:
18
{{- toYaml . | nindent 8 }}
19
{{- end }}
20
labels:
21
{{- include "lucee.selectorLabels" . | nindent 8 }}
22
spec:
23
{{- with .Values.imagePullSecrets }}
24
imagePullSecrets:
25
{{- toYaml . | nindent 8 }}
26
{{- end }}
27
serviceAccountName: {{ include "lucee.serviceAccountName" . }}
28
securityContext:
29
{{- toYaml .Values.podSecurityContext | nindent 8 }}
30
containers:
31
- name: {{ .Chart.Name }}
32
securityContext:
33
{{- toYaml .Values.securityContext | nindent 12 }}
34
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
35
imagePullPolicy: {{ .Values.image.pullPolicy }}
36
ports:
37
- name: http
38
containerPort: {{ .Values.image.containerPort }}
39
protocol: TCP
40
livenessProbe:
41
httpGet:
42
path: /
43
port: http
44
readinessProbe:
45
httpGet:
46
path: /
47
port: http
48
resources:
49
{{- toYaml .Values.resources | nindent 12 }}
50
{{- with .Values.nodeSelector }}
51
nodeSelector:
52
{{- toYaml . | nindent 8 }}
53
{{- end }}
54
{{- with .Values.affinity }}
55
affinity:
56
{{- toYaml . | nindent 8 }}
57
{{- end }}
58
{{- with .Values.tolerations }}
59
tolerations:
60
{{- toYaml . | nindent 8 }}
61
{{- end }}
62
63