k8s-blue-green-deployment

Perform blue/green deployments on a Kubernetes cluster
Arguments
KUBE_CONTEXT
- The name of your cluster (as found in the Codefresh Kubernetes dashboard).
SERVICE_NAME
- Name of the service
DEPLOYMENT_NAME
- Name of the deployment
NEW_VERSION
- New version
NAMESPACE
- The namespace in the cluster
HEALTH_SECONDS
- Number of seconds the mesure health
    version: '1.0'
steps:
  run:
    title: 'Deploying new version ${{CF_SHORT_REVISION}}'
    type: k8s-blue-green-deployment
    arguments:
      SERVICE_NAME: '${{SERVICE_NAME}}'
      DEPLOYMENT_NAME: '${{DEPLOYMENT_NAME}}'
      NEW_VERSION: '${{NEW_VERSION}}'
      HEALTH_SECONDS: '${{HEALTH_SECONDS}}'
      NAMESPACE: '${{NAMESPACE}}'
      KUBE_CONTEXT: '${{KUBE_CONTEXT}}'

  
github.comKostis KapelonisAug 21, 2019source