Closed grossiello-netspinlab closed 2 years ago
failed to find the git operator namespace
Can you paste the output of kubectl get ns
?
Also do u have kubeconfig env variable pointing to ur local kubeconfig file?
Also can u try AWS_PROFILE=<profile> terraform apply
, where profile is ur AWS profile set in credentials or config file (in the .aws folder)
I also came up against this issue.
To follow on from the above, this is the result that running kubectl get ns returned error: You must be logged in to the server (Unauthorized)
The full user section of the config at this point showed:
users:
- name: <arn>
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
args:
- --region
- eu-west-2
- eks
- get-token
- --cluster-name
- <cluster-name>
command: aws
After setting the AWS_PROFILE in my env and re-running terraform apply
the generated kube config had an ENV
section with the aws profile I had set. As a result the jx admin log did work.
For completeness: was trying to run a '1.21' cluster version and was also running on Ubuntu - though WSL. Can specify more of the steps I took to get this issue if needs be as the issue seems fairly repeatable for me.
I think the issue is related to #288
I can confirm I had changed the AWS profile to be a named profile, not my default one, same as in #288.
This should be fixed now, closing.
Summary
JX setup succeeds up to the
jx admin log
command, which returns an error.Steps to reproduce the behavior
terraform init
,terraform plan
andterraform apply
jx admin log
Expected behavior
Jenkins X installation logs tailed
Actual behavior
The following error is returned:
error: failed to find the git operator namespace: failed to find Deployment jx-git-operator in namespace jx: Unauthorized
Terraform version
The output of
terraform version
is:Terraform v1.0.3 on linux_amd64
Module version
1.15.38
Operating system
Ubuntu