Files
rickroll/k8s/deploy.rickroll.yaml
ytshih 288715f0c1
All checks were successful
Build image and deploy / release-image (push) Successful in 1m3s
Build image and deploy / deploy (push) Successful in 4s
Fix: securityContext
2024-10-23 18:03:56 +00:00

35 lines
683 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rickroll
namespace: rickroll
labels:
app: rickroll
spec:
replicas: 1
selector:
matchLabels:
app: rickroll
template:
metadata:
labels:
app: rickroll
spec:
containers:
- name: server
securityContext:
runAsNonRoot: true
runAsUser: 1000
image: gitea.konchin.com/service/rickroll:latest
ports:
- name: http
containerPort: 8080
env:
- name: URI
value: https://youtu.be/dQw4w9WgXcQ
- name: PORT
value: '8080'
imagePullSecrets:
- name: regcred