dpl-app.yml 707 B

1234567891011121314151617181920212223242526272829
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"sample:latest"},"fieldPath":"spec.template.spec.containers[?(@.name==\"sample\")].image"}]'
  6. labels:
  7. app: sample
  8. app.kubernetes.io/component: sample
  9. app.kubernetes.io/instance: sample
  10. sample: metrics
  11. name: sample
  12. namespace: metrics
  13. spec:
  14. replicas: 3
  15. selector:
  16. matchLabels:
  17. deployment: sample
  18. template:
  19. metadata:
  20. labels:
  21. deployment: sample
  22. spec:
  23. containers:
  24. - image: ' '
  25. imagePullPolicy: IfNotPresent
  26. name: sample
  27. ports:
  28. - containerPort: 8080
  29. protocol: TCP