Path: blob/dev/helm/templates/interactsh-deployment.yaml
2070 views
apiVersion: apps/v11kind: Deployment2metadata:3name: {{ include "nuclei.fullname" . }}-interactsh4labels:5{{- include "nuclei.labels" . | nindent 4 }}6spec:7{{- if not .Values.autoscaling.enabled }}8replicas: {{ .Values.replicaCount }}9{{- end }}10selector:11matchLabels:12{{- include "nuclei.selectorLabels" . | nindent 6 }}13template:14metadata:15{{- with .Values.podAnnotations }}16annotations:17{{- toYaml . | nindent 8 }}18{{- end }}19labels:20{{- include "nuclei.selectorLabels" . | nindent 8 }}21spec:22{{- with .Values.imagePullSecrets }}23imagePullSecrets:24{{- toYaml . | nindent 8 }}25{{- end }}26serviceAccountName: {{ include "nuclei.serviceAccountName" . }}27securityContext:28{{- toYaml .Values.podSecurityContext | nindent 8 }}29containers:30- name: {{ .Chart.Name }}-interactsh31securityContext:32{{- toYaml .Values.securityContext | nindent 12 }}33image: "{{ .Values.interactsh.image.repository }}:{{ .Values.interactsh.image.tag | default .Chart.AppVersion }}"34imagePullPolicy: {{ .Values.interactsh.image.pullPolicy }}35command: ["interactsh-server", "-skip-acme", "-d", "{{ .Values.interactsh.service.name }}"]36ports:37- name: http38containerPort: 8039protocol: TCP40livenessProbe:41httpGet:42path: /43port: http44readinessProbe:45httpGet:46path: /47port: http48resources:49{{- toYaml .Values.resources | nindent 12 }}50{{- with .Values.nodeSelector }}51nodeSelector:52{{- toYaml . | nindent 8 }}53{{- end }}54{{- with .Values.affinity }}55affinity:56{{- toYaml . | nindent 8 }}57{{- end }}58{{- with .Values.tolerations }}59tolerations:60{{- toYaml . | nindent 8 }}61{{- end }}626364