Spinnaker connect kubernetes fail


#1

Problem:
The logs show Caused by: java.lang.Exception: Kubernetes accounts at V1 do no support configuring caching behavior for kinds or custom resources. when invoke hal deploy apply.

use kubectl can access the kubernetes.
./kubectl --kubeconfig=/root/.kube/config get ns
NAME STATUS AGE
default Active 17d
kube-system Active 17d

related information:
kubenetes version:
[root@localhost bin]# ./kubectl version
Client Version: version.Info{Major:“1”, Minor:“5”, GitVersion:“v1.5.2”, GitCommit:“269f928217957e7126dc87e6adfa82242bfe5b1e”, GitTreeState:“clean”, BuildDate:“2017-07-03T15:31:10Z”, GoVersion:“go1.7.4”, Compiler:“gc”, Platform:“linux/amd64”}
Server Version: version.Info{Major:“1”, Minor:“5”, GitVersion:“v1.5.2”, GitCommit:“269f928217957e7126dc87e6adfa82242bfe5b1e”, GitTreeState:“clean”, BuildDate:“2017-07-03T15:31:10Z”, GoVersion:“go1.7.4”, Compiler:“gc”, Platform:“linux/amd64”}

  1. hal config command:

    1. hal config provider kubernetes enable
    2. hal config provider kubernetes account add my-k8s-account --docker-registries my-docker-registry --context kubernetes --namespaces default
  2. kube config file:
    root@5b2554872b39:~/.kube# cat config
    apiVersion: v1
    clusters:

  • cluster:
    certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUMvVENDQWVXZ0F3SUJBZ0lKQU82Q080MGhpbEs5TUEwR0NTcUdTSWIzRFFFQkN3VUFNQlV4RXpBUkJnTlYKQkFNTUNtczRjeTF0WVhOMFpYSXdIaGNOTVRnd05USTBNVFV4TkRNM1doY05Nekl3TVRNeE1UVXhORE0zV2pBVgpNUk13RVFZRFZRUUREQXByT0hNdGJXRnpkR1Z5TUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCCkNnS0NBUUVBdjRiYzFQNzRlZzBIN1cvZEtxYk54TndMOG1xNG1sTXhiQyt3UGxOMkhHTVA4UHZNcFAvZjRncDUKTHAyNW5JeDBOc3JGWlgwbXBBN1FoTFlzW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://192.168.0.4:6443
    name: kubernetes
    contexts:
  • context:
    cluster: kubernetes
    user: admin
    namespace: default
    name: kubernetes
    current-context: kubernetes
    kind: Config
    preferences: {}
    users:
  • name: admin
    user:
    client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUNwakNDQVk0Q0NRRDAzcFNNWk5VN056QU5CZ2txaGtpRzl3MEJBUXNGQURBVk1STXdFUVlEVlFRRERBcHIKT0hNdGJXRnpkR1Z5TUI0WERURTRNRFV5TlRBeU1UVTBNVm9YRFRNeU1ESXdNVEF5TVRVME1Wb3dGVEVUTUJFRwpBMVVFQXd3S2F6aHpYMjFoYzNSbGNqQ0NBU0l3RFFZSktvWklodmNOQVFFQkJRQURnZ0VQQURDQ0FRb0NnZ0VCCkFLY215bG5NNXdMVjhYRVVyRGtZVXYxOENRanpoV1U0cFhBUWgwNFBpYXErTUFNSUF2SXJNQ1hZRW9zVXI0d2sKbFBUcUxkK3UwQkMrWkFlK0E2RmEyWkUvRlhmOU1XblVMa3QwRndKTy9yQ0FxSWFFUHlvc0F6NHdLZmdPQ0xyVwpmRTdibG1pSWZYcFNPRlJjeTRnVFFmTHpEd2FzaGJVVXgyZGRqNmRGbVhLS0V6OEF6dnl6T3RhaHRMbHBEUThiCmNtZklpOGYvRElSNEg1UWs4RWIwRlJCSC9mU3ZzOHRSQ1JhbzhEcGpWckQ0eDlWVGdsU3VKWW5wYVl0aEZ1UTMKOGVSWXFydWhiRW94U3FRYnhjVlhUdzIzSmwwNlIxMkN1VVU5UHdSeUdYMGhOcVBrR2ZWY1hzUkJES2ZuRHEwQQppWTZkRnJNS0tEQ0JLT0tiWDRBdzdSTUNBd0VBQVRBTkJna3Foa2lHOXcwQkFRc0ZBQU9DQVFFQWhJeE9yb3NVClVoVFYrVDRibUFHUzZOWExFOTBBK2xnNXkyaVJXcEZhYXdLVXpLU0xpZElhQ2p6Mm9mT2ZITjN3d01ld3FOYksKcm16bFNsY1Z3czVXdVpubWFY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2K29Ca1FLQmdRQ2lYV3BJcTAzVDBkUWpyOVp3NjdvT0tCbUZKWHBUYVhLVXFLd2UKdW5GL1NRck1HUjVsMGlQVWV3bHlNOCtQYXZyRFUycUlJZkN2SmllenhIQXZTNWxzUkk5Mlo1Tkg5Z3kvQzJURQpFY2pXcW5kbkQ1SHBxdjUxcitKU0RRSVo0VEQzOXlaM2hPODdrOXhZNlNRQUdGUmwyNE5hT3IxbExSeFBtVkNRCk5ZU2VIUUtCZ0E2K3ZIZGtUcEU5dHBlMU85MHpiTm9FTUNMVDVsSVUzY1dXdzBBeWdLM3hFV0gxSy9XQU01Rk0Kb3plTW41SndmL080R2VOdk8xcW9POWVTVGF4ZHMyelpxOUxqb3Iwd2ZUcUlGSGZQQkF5SG1nVFlLRDdDT3EvaApHNDQyZnptazBLajNuNHFxbkxHdWo0S05Pem9aY2czRUZSY2xrakQ5SDczalNlWHlKR1MrCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
  1. hal log:
    com.netflix.spinnaker.halyard.cli.services.v1.ExpectedDaemonFailureException: Failed to enable kubernetes
    at com.netflix.spinnaker.halyard.cli.services.v1.OperationHandler.get(OperationHandler.java:45)
    at com.netflix.spinnaker.halyard.cli.command.v1.config.providers.AbstractProviderEnableDisableCommand.executeThis(AbstractProviderEnableDisableCommand.java:66)
    at com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.safeExecuteThis(NestableCommand.java:201)
    at com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:149)
    at com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:152)
    at com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:152)
    at com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:152)
    at com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:152)
    at com.netflix.spinnaker.halyard.cli.Main.main(Main.java:46)
    Caused by: java.lang.Exception: Kubernetes accounts at V1 do no support configuring caching behavior for kinds or custom resources.
    at com.netflix.spinnaker.halyard.core.problem.v1.ProblemSet.throwifSeverityExceeds(ProblemSet.java:102)
    at com.netflix.spinnaker.halyard.core.DaemonResponse$UpdateRequestBuilder.build(DaemonResponse.java:157)
    at com.netflix.spinnaker.halyard.core.tasks.v1.TaskRepository.lambda$submitTask$1(TaskRepository.java:48)
    at java.lang.Thread.run(Thread.java:748)

Does I miss sth?

Regards,
Tao