Skip to content

AutoDevOps deploy fails if connected cluster has Kubernetes 1.16.

Steps to reproduce:

  1. Create a kubernetes cluster with version 1.16 (I used DigitalOcean) and connect to the Rails project
  2. Run pipeline to until you get to deploy to production job.
  3. Deployment fails with next log:
$ auto-deploy deploy
 secret "production-secret" deleted
 secret/production-secret replaced
 No helm values file found at '.gitlab/auto-deploy-values.yaml'
 Initializing service URL and database. No deployment will be created
 Release "production" does not exist. Installing it now.
 Error: validation failed: unable to recognize "": no matches for kind "Deployment" in version "extensions/v1beta1"
 ERROR: Job failed: command terminated with exit code 1

Doing the same with kubernetes 1.14 worked fine:

 $ auto-deploy deploy
secret/production-secret replaced
No helm values file found at '.gitlab/auto-deploy-values.yaml'
Initializing service URL and database. No deployment will be created
Release "production" does not exist. Installing it now.
NAME:   production
LAST DEPLOYED: Tue Feb 25 14:31:06 2020
NAMESPACE: car-passport-2-17124178-production
STATUS: DEPLOYED
Edited by Dmytro Zaporozhets (DZ)