Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/spinnaker] Bug with kubectl 1.16+ #20207

Closed
zdevi opened this issue Jan 17, 2020 · 4 comments · Fixed by #20917
Closed

[stable/spinnaker] Bug with kubectl 1.16+ #20207

zdevi opened this issue Jan 17, 2020 · 4 comments · Fixed by #20917

Comments

@zdevi
Copy link
Contributor

zdevi commented Jan 17, 2020

Can't install spinnaker's helm release on kubectl v1.16+

helm install --name spinnaker stable/spinnaker --namespace spinnaker
Error: validation failed: [unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta2", unable to recognize "": no matches for kind "StatefulSet" in version "apps/v1beta2"]

kubectl v1.16.4
helm v2.16.1

Reproduce :
Try to install spinnaker stable chart on K8S 1.16+

@dennisschroer
Copy link

Duplicate to #20191.

It seems to be a problem in dependencies of this chart. Both the minio and redis dependencies use the old api.

@dennisschroer
Copy link

I cloned this repo and updated stable/spinnaker/requirements.yaml to:

dependencies:
- name: redis
  version: 10.3.4
  repository: https://kubernetes-charts.storage.googleapis.com/
  condition: redis.enabled
- name: minio
  version: 5.0.5
  repository: https://kubernetes-charts.storage.googleapis.com/
  condition: minio.enabled

Then I did helm dependency update and helm install spinnaker . --namespace spinnaker --timeout 600s.

It is currently installing, I hope this will work

@dennisschroer
Copy link

dennisschroer commented Jan 17, 2020

Nope. That didnt work. The installer is running but fails with:

Problems in : 
 
Failed to deploy manifest: 
apiVersion: apps/v1beta2 
kind: Deployment 
metadata: 
name: spin-clouddriver 
namespace: spinnaker 
annotations: {moniker.spinnaker.io/application: '"spin"', 
  moniker.spinnaker.io/cluster: '"clouddriver"'} 
labels: {app: spin, cluster: spin-clouddriver, app.kubernetes.io/name: 
  clouddriver, 
app.kubernetes.io/managed-by: halyard, app.kubernetes.io/part-of: spinnaker, 
  app.kubernetes.io/version: 1.16.1} 
spec: 
replicas: 1 
selector: 
matchLabels: {app: spin, cluster: spin-clouddriver} 
template: 
metadata: 
annotations: {} 
labels: {app: spin, cluster: spin-clouddriver, app.kubernetes.io/name: 
  clouddriver, 
app.kubernetes.io/managed-by: halyard, app.kubernetes.io/part-of: spinnaker, 
app.kubernetes.io/version: 1.16.1} 
spec: 
containers: 
- name: clouddriver 
image: gcr.io/spinnaker-marketplace/clouddriver:6.3.0-20190904130744 
ports: 
- {containerPort: 7002} 
readinessProbe: 
exec: 
command: [wget, --no-check-certificate, --spider, -q, 
  'http://localhost:7002/health'] 
initialDelaySeconds: null 
livenessProbe: null 
securityContext: null 
volumeMounts: 
- {name: spin-clouddriver-files-1659378238, mountPath: /opt/spinnaker/config} 
lifecycle: {} 
env: 
- {name: JAVA_OPTS, value: '-XX:+UnlockExperimentalVMOptions 
  -XX:+UseCGroupMemoryLimitForHeap 
-XX:MaxRAMFraction=2'} 
- {name: SPRING_PROFILES_ACTIVE, value: local} 
resources: 
requests: {} 
limits: {} 
imagePullSecrets: [] 
terminationGracePeriodSeconds: 720 
affinity: {podAntiAffinity: null, podAffinity: null, nodeAffinity: null} 
tolerations: [] 
volumes: 
- name: spin-clouddriver-files-1659378238 
secret: {secretName: spin-clouddriver-files-1659378238} 
 
error: unable to recognize "STDIN": no matches for kind "Deployment" in version 
  "apps/v1beta2" 
 
 
Failed to deploy Spinnaker. 

@dennisschroer
Copy link

In my second attempt I updated the versions in values.yaml to the latest versions:

halyard:
  spinnakerVersion: 1.17.6
  image:
    repository: gcr.io/spinnaker-marketplace/halyard
    tag: 1.29.0
    pullSecrets: []
...

It seems to be working now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants