--- # Source: k8s-service/templates/service.yaml apiVersion: v1 kind: Service metadata: name: release-name-fred labels: # These labels are required by helm. You can read more about required labels in the chart best practices guide: # https://docs.helm.sh/chart_best_practices/#standard-labels app.kubernetes.io/name: fred helm.sh/chart: k8s-service-0.0.1-replace app.kubernetes.io/instance: release-name app.kubernetes.io/managed-by: Helm spec: type: ClusterIP ports: - name: app port: 80 protocol: TCP targetPort: http selector: app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name --- # Source: k8s-service/templates/canarydeployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: release-name-fred-canary labels: # These labels are required by helm. You can read more about required labels in the chart best practices guide: # https://docs.helm.sh/chart_best_practices/#standard-labels helm.sh/chart: k8s-service-0.0.1-replace app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name app.kubernetes.io/managed-by: Helm spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name gruntwork.io/deployment-type: canary template: metadata: labels: app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name gruntwork.io/deployment-type: canary spec: containers: - name: fred-canary image: "fredx:latest" imagePullPolicy: IfNotPresent ports: - name: http containerPort: 80 protocol: TCP resources: {} lifecycle: # Include a preStop hook with a shutdown delay for eventual consistency reasons. # See https://blog.gruntwork.io/delaying-shutdown-to-wait-for-pod-deletion-propagation-445f779a8304 preStop: exec: command: - sleep - "5" --- # Source: k8s-service/templates/deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: release-name-fred labels: # These labels are required by helm. You can read more about required labels in the chart best practices guide: # https://docs.helm.sh/chart_best_practices/#standard-labels helm.sh/chart: k8s-service-0.0.1-replace app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name app.kubernetes.io/managed-by: Helm spec: replicas: 1 selector: matchLabels: app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name gruntwork.io/deployment-type: main template: metadata: labels: app.kubernetes.io/name: fred app.kubernetes.io/instance: release-name gruntwork.io/deployment-type: main spec: containers: - name: fred image: "fred:latest" imagePullPolicy: IfNotPresent ports: - name: http containerPort: 80 protocol: TCP resources: {} lifecycle: # Include a preStop hook with a shutdown delay for eventual consistency reasons. # See https://blog.gruntwork.io/delaying-shutdown-to-wait-for-pod-deletion-propagation-445f779a8304 preStop: exec: command: - sleep - "5"