canary-deployment-v2.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. annotations:
  5. deployment.kubernetes.io/revision: "1"
  6. generation: 1
  7. labels:
  8. app: canary-v2
  9. name: canary-v2
  10. namespace: canary-production-canary
  11. resourceVersion: "486797"
  12. spec:
  13. progressDeadlineSeconds: 2147483647
  14. replicas: 1
  15. revisionHistoryLimit: 10
  16. selector:
  17. matchLabels:
  18. app: canary-v2
  19. strategy:
  20. rollingUpdate:
  21. maxSurge: 1
  22. maxUnavailable: 1
  23. type: RollingUpdate
  24. template:
  25. metadata:
  26. creationTimestamp: null
  27. labels:
  28. app: canary-v2
  29. spec:
  30. containers:
  31. - image: dotbalo/canary:v2
  32. imagePullPolicy: Always
  33. name: canary-v2
  34. ports:
  35. - containerPort: 8080
  36. protocol: TCP
  37. terminationMessagePath: /dev/termination-log
  38. terminationMessagePolicy: File
  39. dnsPolicy: ClusterFirst
  40. restartPolicy: Always
  41. schedulerName: default-scheduler
  42. securityContext: {}
  43. terminationGracePeriodSeconds: 30
  44. ---
  45. apiVersion: v1
  46. kind: Service
  47. metadata:
  48. name: canary-v2
  49. namespace: canary-production-canary
  50. spec:
  51. ports:
  52. - port: 8080
  53. protocol: TCP
  54. targetPort: 8080
  55. selector:
  56. app: canary-v2
  57. sessionAffinity: None
  58. type: ClusterIP