Fix: securityContext
This commit is contained in:
@@ -18,12 +18,17 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: server
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1000
|
||||
image: gitea.konchin.com/service/rickroll:latest
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
containerPort: 8080
|
||||
env:
|
||||
- name: URI
|
||||
value: https://youtu.be/dQw4w9WgXcQ
|
||||
- name: PORT
|
||||
value: '8080'
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
|
||||
@@ -13,4 +13,4 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
targetPort: 8080
|
||||
|
||||
Reference in New Issue
Block a user