deployment-prod.yaml 716 B

12345678910111213141516171819202122232425262728
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: h2demo-deployment
  5. spec:
  6. replicas: 1
  7. template:
  8. metadata:
  9. labels:
  10. app: h2demo
  11. annotations:
  12. container.seccomp.security.alpha.kubernetes.io/h2demo: docker/default
  13. container.apparmor.security.beta.kubernetes.io/h2demo: runtime/default
  14. spec:
  15. containers:
  16. - name: h2demo
  17. image: gcr.io/symbolic-datum-552/h2demo:latest
  18. imagePullPolicy: Always
  19. command: ["/h2demo", "-prod"]
  20. ports:
  21. - containerPort: 80
  22. - containerPort: 443
  23. resources:
  24. requests:
  25. cpu: "1"
  26. memory: "1Gi"
  27. limits:
  28. memory: "2Gi"