This commit is contained in:
@@ -1,22 +1,31 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: { { include "nginx.fullname" . } }
|
||||
name: {{ include "nginx.fullname" . }}
|
||||
labels:
|
||||
app: { { include "nginx.name" . } }
|
||||
app: {{ include "nginx.name" . }}
|
||||
spec:
|
||||
replicas: { { .Values.replicaCount } }
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: { { include "nginx.name" . } }
|
||||
app: {{ include "nginx.name" . }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: { { include "nginx.name" . } }
|
||||
app: {{ include "nginx.name" . }}
|
||||
spec:
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
containers:
|
||||
- name: nginx
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
imagePullPolicy: { { .Values.image.pullPolicy } }
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 8080
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: { { include "nginx.fullname" . } }
|
||||
name: {{ include "nginx.fullname" . }}
|
||||
spec:
|
||||
type: { { .Values.service.type } }
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: { { .Values.service.port } }
|
||||
targetPort: 80
|
||||
- port: {{ .Values.service.port }}
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app: { { include "nginx.name" . } }
|
||||
app: {{ include "nginx.name" . }}
|
||||
|
||||
Reference in New Issue
Block a user