Spinnaker setup on Private kubernetes custer

8/5/2019

I am trying to setup spinnaker on a private K8s cluster.

Followed the below steps.

  1. Create service account
  2. kubectl create deployment hal --image gcr.io/spinnaker-marketplace/halyard:1.5.0
  3. kubectl edit deploy hal, and add the service account

Now the halyard pod is running and I am able to access the bash.

  1. kubectl exec -it <POD_NAME> bash

  2. Now trying to enable docker-registry: hal config provider docker-registry enable

Above command gives the following error. What am I missing?

- Get the dockerRegistry provider   Running validation: Validating halconfig with HalconfigValidator
---> HTTP GET http://localhost:8064/v1/tasks/b05bc343-3d0b-45b5-9c7e-4c02647881e3/
---> END HTTP (no body) <--- HTTP 200 http://localhost:8064/v1/tasks/b05bc343-3d0b-45b5-9c7e-4c02647881e3/
(2ms) X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma:
no-cache Expires: 0 X-Frame-Options: DENY Content-Type:
application/json;charset=UTF-8 Transfer-Encoding: chunked Date: Mon,
05 Aug 2019 18:41:28 GMT OkHttp-Sent-Millis: 1565030489764
OkHttp-Received-Millis: 1565030489766

{   "name" : "Get the dockerRegistry provider",   "timeout" : 60000,  
"events" : [ {
    "message" : "Validating halconfig with DockerRegistryAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309826   }, {
    "message" : "Validating halconfig with AccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309826   }, {
    "message" : "Validating halconfig with AwsAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309826   }, {
    "message" : "Validating halconfig with ProvidersValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309826   }, {
    "message" : "Validating halconfig with CloudFoundryProviderValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309826   }, {
    "message" : "Validating halconfig with EcsAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309827   }, {
    "message" : "Validating halconfig with ProviderValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309827   }, {
    "message" : "Validating halconfig with AzureProviderValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309894   }, {
    "message" : "Validating halconfig with DCOSClusterValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309894   }, {
    "message" : "Validating halconfig with DCOSAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with DCOSProviderValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with AppengineAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with KubernetesAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with GoogleProviderValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with OracleAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with OracleProviderValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with HaClouddriverValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with DeploymentConfigurationValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with HaEchoValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with HaServicesValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with CanaryAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with PrometheusCanaryAccountValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with CanaryValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309895   }, {
    "message" : "Validating halconfig with DeploymentEnvironmentValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with GCSValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with S3Validator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with PersistentStorageValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with OracleValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with AzsValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with GooglePublisherValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with GooglePubsubValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with FieldValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with SecurityValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with PublicServiceValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with AuthnValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with AuthzValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309896   }, {
    "message" : "Validating halconfig with LdapValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309897   }, {
    "message" : "Validating halconfig with OAuth2Validator",
    "stage" : "Running validation",
    "timestamp" : 1565030309897   }, {
    "message" : "Validating halconfig with IAPValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309897   }, {
    "message" : "Validating halconfig with X509Validator",
    "stage" : "Running validation",
    "timestamp" : 1565030309897   }, {
    "message" : "Validating halconfig with SamlValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309897   }, {
    "message" : "Validating halconfig with HalconfigValidator",
    "stage" : "Running validation",
    "timestamp" : 1565030309897   } ],   "children" : [ ],   "uuid" : "b05bc343-3d0b-45b5-9c7e-4c02647881e3",   "timedOut" : true,  
"version" : "1.22.1-20190724172712",   "state" : "RUNNING",  
"response" : null,   "fatalError" : null,   "runningJobs" : [ ] ^ Get
the dockerRegistry provider   Running validation: Validating halconfig
with HalconfigValidator
---> HTTP GET http://localhost:8064/v1/tasks/b05bc343-3d0b-45b5-9c7e-4c02647881e3/
---> END HTTP (no body) <--- HTTP 200 http://localhost:8064/v1/tasks/b05bc343-3d0b-45b5-9c7e-4c02647881e3/
(5ms) X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate Pragma:
no-cache Expires: 0 X-Frame-Options: DENY Content-Length: 0 Date: Mon,
05 Aug 2019 18:41:30 GMT OkHttp-Sent-Millis: 1565030490168
OkHttp-Received-Millis: 1565030490170 <--- END HTTP (0-byte body)
java.lang.NullPointerException  at
com.netflix.spinnaker.halyard.cli.services.v1.ResponseUnwrapper.get(ResponseUnwrapper.java:51)
    at
com.netflix.spinnaker.halyard.cli.services.v1.Daemon.lambda$getProvider$54(Daemon.java:599)
    at
com.netflix.spinnaker.halyard.cli.services.v1.OperationHandler.get(OperationHandler.java:42)
    at
com.netflix.spinnaker.halyard.cli.command.v1.config.providers.account.AbstractListAccountsCommand.getProvider(AbstractListAccountsCommand.java:44)
    at
com.netflix.spinnaker.halyard.cli.command.v1.config.providers.account.AbstractListAccountsCommand.executeThis(AbstractListAccountsCommand.java:49)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.safeExecuteThis(NestableCommand.java:222)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:172)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:175)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:175)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:175)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:175)
    at
com.netflix.spinnaker.halyard.cli.command.v1.NestableCommand.execute(NestableCommand.java:175)
    at com.netflix.spinnaker.halyard.cli.Main.main(Main.java:46)
-- user1578872
docker
kubernetes
spinnaker
spinnaker-halyard

0 Answers