deployment-with-UnixUserID.yaml 383 B

123456789101112131415161718192021222324
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: deployment-with-unixuserid
  5. labels:
  6. app: nginx
  7. spec:
  8. replicas: 1
  9. selector:
  10. matchLabels:
  11. app: nginx
  12. template:
  13. metadata:
  14. labels:
  15. app: nginx
  16. spec:
  17. containers:
  18. - name: nginx
  19. image: nginx:1.7.9
  20. securityContext:
  21. runAsNonRoot: true
  22. runAsUser: 65534