1

secrets "jenkins" not found

I'm trying to create a cluster using jx create cluster gke --skip-login --git-public. 

Error Details:

Jenkins X deployments ready in namespace jx
Configuring the TeamSettings for ImportMode Jenkinsfile
Configure Jenkins API Token
WARNING:
retrying after error:creating Jenkins Auth configuration: secrets "jenkins" not found
WARNING:
retrying after error:creating Jenkins Auth configuration: secrets "jenkins" not found
ERROR: error creating cluster configuring Jenkins: creating Jenkins API token: after 3 attempts, last error: creating Jenkins Auth configuration: secrets "jenkins" not found
error: configuring Jenkins: creating Jenkins API token: after 3 attempts, last error: creating Jenkins Auth configuration: secrets "jenkins" not found

 

Below things are happening successfully:

  • Namespace created
  • Domain name created
  • cluster created
  • API token URL's generated for GitHub integration

 

JX version:

Version           :   2.1.93
Commit          :   729fc2b
Build date      :    2020-06-30T16:56:20Z
Go version     :   1.13.8
Git tree state  :    clean

 

Kubectl Version:

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.0", GitCommit:"9e991415386e4cf155a24b1da15becaa390438d8", GitTreeState:"clean", BuildDate:"2020-03-25T14:58:59Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"windows/amd64"}
Unable to connect to the server: context deadline exceeded (Client.Timeout exceeded while awaiting headers)

 

Helm version:

Client: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"}

 

Build Log:

C:\Users\admin\AppData\Local\Google\Cloud SDK>jx create cluster gke --skip-login --git-public
? Missing required dependencies, deselect to avoid auto installing: [Use arrows to move, space to select, type to filte? Missing required dependencies, deselect to avoid auto installing: [Use arrows to move, space to select, type to filte? Missing required dependencies, deselect to avoid auto installing: [Use arrows to move, space to select, type to filte? Missing required dependencies, deselect to avoid auto installing: [Use arrows to move, space to select, type to filte? Missing required dependencies, deselect to avoid auto installing:
Using the only Google Cloud Project gkejenkinsx to create the cluster
Updated property [core/project].
? No cluster name provided so using a generated one: skullorchid
? Defaulting to cluster type: Zonal
? Google Cloud Zone: us-central1-b
? Defaulting to machine type: n1-standard-2
? Defaulting to minimum number of nodes: 3
? Defaulting to maximum number of nodes: 5
? Defaulting use of preemptible VMs: No
? Defaulting access to Google Cloud Storage / Google Container Registry: Yes
? Defaulting enabling Cloud Build, Container Registry & Container Analysis API's: Yes
? Defaulting enabling Kaniko for building container images: No
Creating cluster...
WARNING: Currently VPC-native is not the default mode during cluster creation. In the future, this will become the default mode and can be disabled using `--no-enable-ip-alias` flag. Use `--[no-]enable-ip-alias` flag to suppress this warning.
WARNING: Newly created clusters and node-pools will have node auto-upgrade enabled by default. This can be disabled using the `--no-enable-autoupgrade` flag.
WARNING: Starting with version 1.18, clusters will have shielded GKE nodes by default.
WARNING: Your Pod address range (`--cluster-ipv4-cidr`) can accommodate at most 1008 node(s).
This will enable the autorepair feature for nodes. Please see https://cloud.google.com/kubernetes-engine/docs/node-auto-repair for more information on node autorepairs.
Creating cluster skullorchid in us-central1-b... Cluster is being health-checked (master is healthy)...done.
Created [https://container.googleapis.com/v1/projects/gkejenkinsx/zones/us-central1-b/clusters/skullorchid].
To inspect the contents of your cluster, go to: https://console.cloud.google.com/kubernetes/workload_/gcloud/us-central1-b/skullorchid?project=gkejenkinsx
kubeconfig entry generated for skullorchid.
NAME LOCATION MASTER_VERSION MASTER_IP MACHINE_TYPE NODE_VERSION NUM_NODES STATUS
skullorchid us-central1-b 1.14.10-gke.36 130.211.225.29 n1-standard-2 1.14.10-gke.36 3 RUNNING
Initialising cluster ...
? Configured Jenkins installation type: Serverless Jenkins X Pipelines with Tekton
Namespace jx created
? Missing required dependencies, deselect to avoid auto installing:
Context "gke_gkejenkinsx_us-central1-b_skullorchid" modified.
? Missing required dependencies, deselect to avoid auto installing:
Set ting the docker registry organisation to gkejenkinsx in the TeamSettings
Git configured for user: A735493 and email chellachidambaram.s@atos.net
Helm installed and configured
? No existing ingress controller found in the kube-system namespace, installing one: Yes

Note: this loadbalancer will fail to be provisioned if you have insufficient quotas, this can happen easily on a GKE free account.
To view quotas run: gcloud compute project-info describe
Waiting for external loadbalancer to be created and update the nginx-ingress-controller service in kube-system namespace
External loadbalancer created
Waiting to find the external host name of the ingress controller Service in namespace kube-system with name jxing-nginx-ingress-controller
You can now configure a wildcard DNS pointing to the new Load Balancer address 34.71.92.188
If you don't have a wildcard DNS setup then create a DNS (A) record and point it at: 34.71.92.188, then use the DNS domain in the next input...

If you do not have a custom domain setup yet, Ingress rules will be set for magic DNS nip.io.
Once you have a custom domain ready, you can update with the command jx upgrade ingress --cluster
? Domain 34.71.92.188.nip.io
nginx ingress controller installed and configured
? Default enabling long term logs storage: Yes
No bucket name provided for long term storage, creating a new one
The bucket gs://skullorchid-lts-13af23f0-5405-457c-b4b9-0dacaf3e347a does not exist so lets create it
Set up a Git username and API token to be able to perform CI/CD
Creating a local Git user for github.com server
? github.com username: chiducaf
To be able to create a repository on github.com we need an API Token
Please click this URL and generate a token
https://github.com/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo

Then COPY the token and enter it below:

? API Token: ****************************************
Select the CI/CD pipelines Git server and user
? Do you wish to use github.com as the pipelines Git server: No
? Git Service URL: https://github.coma
Creating a pipelines Git user for github.com server
To be able to create a repository on github.com we need an API Token
Please click this URL and generate a token
https://github.com/settings/tokens/new?scopes=repo,read:user,read:org,user:email,write:repo_hook,delete_repo

Then COPY the token and enter it below:

? API Token: ****************************************

Setting the team build pack to kubernetes-workloads repo: https://github.com/jenkins-x-buildpacks/jenkins-x-kubernetes.git ref: master
Installing jx into namespace jx
Installing jenkins-x-platform version: 2.0.2374
WARNING: waiting for install to be ready, if this is the first time then it will take a while to download images
Jenkins X deployments ready in namespace jx
Configuring the TeamSettings for ImportMode Jenkinsfile
Configure Jenkins API Token
WARNING:
retrying after error:creating Jenkins Auth configuration: secrets "jenkins" not found
WARNING:
retrying after error:creating Jenkins Auth configuration: secrets "jenkins" not found
ERROR: error creating cluster configuring Jenkins: creating Jenkins API token: after 3 attempts, last error: creating Jenkins Auth configuration: secrets "jenkins" not found
error: configuring Jenkins: creating Jenkins API token: after 3 attempts, last error: creating Jenkins Auth configuration: secrets "jenkins" not found

 

Note:  If I'm adding Jenkins secrets manually it shows another error like below,     

                                        

Error Details:

error: creating Jenkins client: unable to find external URL of service Jenkins in namespace jx

I have tried lot of things for solve this issue but, no luck, can anybody help me to sort out this issue?

 

1 comment

Please sign in to leave a comment.