2 Answers
If you’re using Docker Desktop for Windows, you need to enable Kubernetes first. Right click on the Docker Desktop icon in the tray, go to Settings, then the Kubernetes tab and then tick the enable box to install Kubernetes.
projectid="" zone="europe-west2-a" region="europe-west2" cluster01="" serviceaccount="api-service-account" function_update_gcloud () { gcloud config set compute/region $region gcloud config set compute/zone $zone gcloud config set project $projectid } function_Create_cluster () { echo " build GKE cluster" gcloud container clusters create $cluster01 --num-nodes 2 --machine-type n1-standard-2 --scopes "https://www.googleapis.com/auth/projecthosting,cloud-platform" gcloud container clusters get-credentials $cluster01 --zone $zone --project $projectid } function_bind_gcloud_as_Admin () { ACCOUNT=$(gcloud info --format='value(config.account)') kubectl create clusterrolebinding owner-cluster-admin-binding --clusterrole cluster-admin --user $ACCOUNT }
fill in the variables at the top
also run this to check its up
kubectl get svc
and i also recommend you curl the APIs
can you please clarify a little? Where does this config need to be specified?