proud-pizza-80589
03/07/2021, 8:16 PMconst cluster = new eks.Cluster(name, {
instanceType: "t2.medium",
desiredCapacity: 1,
minSize: 1,
maxSize: 2,
storageClasses: 'gp2',
deployDashboard: false,
});
fails with
Diagnostics:
eks:index:VpcCni (chartmuseum-vpc-cni):
error: Command failed: kubectl apply -f /var/folders/4z/2zvwp19d343djqc78xywc6p00000gn/T/tmp-215018e7GR5EVRaFT.tmp
error: You must be logged in to the server (the server has asked for the client to provide credentials)
kubernetes:<http://storage.k8s.io/v1:StorageClass|storage.k8s.io/v1:StorageClass> (chartmuseum-gp2):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
kubernetes:core/v1:ConfigMap (chartmuseum-nodeAccess):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
pulumi:pulumi:Stack (chartmuseum-tutorial-chartmuseum):
error: You must be logged in to the server (the server has asked for the client to provide credentials)
error: update failed
The cluster is created so not sure why this suddenly no longer worksbillowy-army-68599
03/07/2021, 8:28 PMproud-pizza-80589
03/07/2021, 8:31 PMbroad-dog-22463
03/07/2021, 8:32 PMproud-pizza-80589
03/07/2021, 8:33 PMbroad-dog-22463
03/07/2021, 8:33 PMproud-pizza-80589
03/07/2021, 8:34 PMbillowy-army-68599
03/07/2021, 8:36 PMkubeconfig
?proud-pizza-80589
03/07/2021, 8:36 PMbillowy-army-68599
03/07/2021, 8:36 PMKUBECONFIG
in ~/.kube/config
?proud-pizza-80589
03/07/2021, 8:36 PMbillowy-army-68599
03/07/2021, 8:36 PMproud-pizza-80589
03/07/2021, 8:38 PMbillowy-army-68599
03/07/2021, 8:39 PMproud-pizza-80589
03/07/2021, 8:39 PMbillowy-army-68599
03/07/2021, 8:40 PMproud-pizza-80589
03/07/2021, 8:40 PMbroad-dog-22463
03/07/2021, 8:41 PMbillowy-army-68599
03/07/2021, 8:42 PMproud-pizza-80589
03/07/2021, 8:42 PMbroad-dog-22463
03/07/2021, 8:42 PMbillowy-army-68599
03/07/2021, 8:43 PMkubectl
partbroad-dog-22463
03/07/2021, 8:43 PMbillowy-army-68599
03/07/2021, 8:43 PMproud-pizza-80589
03/07/2021, 8:44 PMbillowy-army-68599
03/07/2021, 8:44 PMaws eks get-token
which will use your default profile if it's setproud-pizza-80589
03/07/2021, 8:45 PM- name: Setup credentials
run: |
export GOOGLE_APPLICATION_CREDENTIALS="$(mktemp).json"
# Check if GOOGLE_CREDENTIALS is base64 encoded
if [[ $GOOGLE_CREDENTIALS =~ ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$ ]]; then
echo "$GOOGLE_CREDENTIALS"|base64 -d > $GOOGLE_APPLICATION_CREDENTIALS
# unset for other gcloud commands using this variable.
unset GOOGLE_CREDENTIALS
else
echo "$GOOGLE_CREDENTIALS" > $GOOGLE_APPLICATION_CREDENTIALS
fi
gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
gcloud --quiet auth configure-docker $GOOGLE_DOCKER_HOSTNAME_LIST
broad-dog-22463
03/07/2021, 8:47 PMproud-pizza-80589
03/07/2021, 8:47 PM