k8s-blue-green-deployment

Perform blue/green deployments on a Kubernetes cluster

Arguments

  • DEPLOYMENT_NAME * - Name of the deployment
  • HEALTH_SECONDS * - Number of seconds the mesure health
  • KUBE_CONTEXT * - The name of your cluster (as found in the Codefresh Kubernetes dashboard).
  • NAMESPACE * - The namespace in the cluster
  • NEW_VERSION * - New version
  • SERVICE_NAME * - Name of the service
    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.com
Kostis Kapelonis
Sep 18, 2019