k8s-canary-deployment

Perform canary deployments on a Kubernetes cluster

arguments

  • DEPLOYMENT_NAME - Kubernetes deployment name
  • KUBE_CONTEXT - The name of your cluster (as found in the Codefresh Kubernetes dashboard).
  • NAMESPACE - The name of the kubenretes namespace
  • NEW_VERSION
  • SERVICE_NAME - Kubernetes service name
  • SLEEP_SECONDS - Time to sleep
  • TRAFFIC_INCREMENT
  • WORKING_VOLUME - Path to directory
    version: '1.0'
steps:
  run:
    title: 'Deploying new version ${{CF_SHORT_REVISION}}'
    type: k8s-canary-deployment
    arguments:
      WORKING_VOLUME: '${{WORKING_VOLUME}}'
      SERVICE_NAME: '${{SERVICE_NAME}}'
      DEPLOYMENT_NAME: '${{DEPLOYMENT_NAME}}'
      TRAFFIC_INCREMENT: '${{TRAFFIC_INCREMENT}}'
      NEW_VERSION: '${{NEW_VERSION}}'
      SLEEP_SECONDS: '${{SLEEP_SECONDS}}'
      NAMESPACE: '${{NAMESPACE}}'
      KUBE_CONTEXT: '${{KUBE_CONTEXT}}'

  
github.com
Kostis Kapelonis
Sep 18, 2019