k8s-canary-deployment

Perform canary deployments on a Kubernetes cluster
Arguments
KUBE_CONTEXT
- The name of your cluster (as found in the Codefresh Kubernetes dashboard).
NAMESPACE
- The name of the kubenretes namespace
TRAFFIC_INCREMENT
-
WORKING_VOLUME
- Path to directory
SERVICE_NAME
- Kubernetes service name
DEPLOYMENT_NAME
- Kubernetes deployment name
SLEEP_SECONDS
- Time to sleep
NEW_VERSION
-
    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.comKostis KapelonisAug 21, 2019source