关于“GKE 工作负载优化”的评价

21242 条评价

Emanuele G. · 已于 about 2 years前审核

Prasad R. · 已于 about 2 years前审核

Ashok Kumar K. · 已于 about 2 years前审核

Lingabathula T. · 已于 about 2 years前审核

Got errors while draining error: unable to drain node "gke-test-cluster-default-pool-b8281dd3-rglw" due to error:cannot delete Pods with local storage (use --delete-emptydir-data to override): gmp-system/alertmanager-0, continuing command... There are pending nodes to be drained: gke-test-cluster-default-pool-b8281dd3-rglw cannot delete Pods with local storage (use --delete-emptydir-data to override): gmp-system/alertmanager-0 student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ for node in $(kubectl get nodes -l cloud.google.com/gke-nodepool=default-pool -o=name); do kubectl drain --force --ignore-daemonsets --grace-period=10 -delete-emptydir-data "$node"; done error: unknown shorthand flag: 'd' in -delete-emptydir-data See 'kubectl drain --help' for usage. error: unknown shorthand flag: 'd' in -delete-emptydir-data See 'kubectl drain --help' for usage. error: unknown shorthand flag: 'd' in -delete-emptydir-data See 'kubectl drain --help' for usage. student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ kubectl describe deployment gb-frontend | grep ^Replicas Replicas: 5 desired | 5 updated | 5 total | 5 available | 0 unavailable student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ for node in $(kubectl get nodes -l cloud.google.com/gke-nodepool=default-pool -o=name); do kubectl uncordon "$node"; done node/gke-test-cluster-default-pool-b8281dd3-bp3k uncordoned node/gke-test-cluster-default-pool-b8281dd3-cxwj uncordoned node/gke-test-cluster-default-pool-b8281dd3-rglw uncordoned student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ kubectl create poddisruptionbudget gb-pdb --selector run=gb-frontend --min-available 4 poddisruptionbudget.policy/gb-pdb created student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ cat << EOF > gb_frontend_pod.yaml apiVersion: v1 kind: Pod metadata: labels: app: gb-frontend name: gb-frontend spec: containers: - name: gb-frontend image: gcr.io/google-samples/gb-frontend:v5 resources: requests: cpu: 100m memory: 256Mi ports: - containerPort: 80 EOF student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ kubectl apply -f gb_frontend_pod.yaml pod/gb-frontend created student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ cat << EOF > gb_frontend_cluster_ip.yaml apiVersion: v1 kind: Service metadata: name: gb-frontend-svc annotations: cloud.google.com/neg: '{"ingress": true}' spec: type: ClusterIP selector: app: gb-frontend ports: - port: 80 protocol: TCP targetPort: 80 EOF student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ kubectl apply -f gb_frontend_cluster_ip.yaml service/gb-frontend-svc unchanged student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ cat << EOF > gb_frontend_ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: gb-frontend-ingress spec: defaultBackend: service: name: gb-frontend-svc port: number: 80 EOF student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ kubectl apply -f gb_frontend_ingress.yaml ingress.networking.k8s.io/gb-frontend-ingress unchanged student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ BACKEND_SERVICE=$(gcloud compute backend-services list | grep NAME | cut -d ' ' -f2) student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ BACKEND_SERVICE=$(gcloud compute backend-services list | grep NAME | cut -d ' ' -f2) student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ gcloud compute backend-services get-health $BACKEND_SERVICE --global --- backend: https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-03-b7a21ddaa2bd/zones/us-central1-a/networkEndpointGroups/k8s1-de582ab1-default-gb-frontend-svc-80-02bcaabe status: healthStatus: - healthState: HEALTHY instance: https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-03-b7a21ddaa2bd/zones/us-central1-a/instances/gke-test-cluster-default-pool-b8281dd3-bp3k ipAddress: 10.8.0.12 port: 80 kind: compute#backendServiceGroupHealth student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ gcloud compute backend-services get-health $BACKEND_SERVICE --global --- backend: https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-03-b7a21ddaa2bd/zones/us-central1-a/networkEndpointGroups/k8s1-de582ab1-default-gb-frontend-svc-80-02bcaabe status: healthStatus: - healthState: HEALTHY instance: https://www.googleapis.com/compute/v1/projects/qwiklabs-gcp-03-b7a21ddaa2bd/zones/us-central1-a/instances/gke-test-cluster-default-pool-b8281dd3-bp3k ipAddress: 10.8.0.12 port: 80 kind: compute#backendServiceGroupHealth student_01_cfe2364e6243@cloudshell:~ (qwiklabs-gcp-03-b7a21ddaa2bd)$ kubectl get ingress gb-frontend-ingress NAME CLASS HOSTS ADDRESS PORTS AGE

Nagasujith K. · 已于 about 2 years前审核

srinivas v. · 已于 about 2 years前审核

Razvan C. · 已于 about 2 years前审核

Akshay Ramesh G. · 已于 about 2 years前审核

Ramanarayanan M. · 已于 about 2 years前审核

Sathish D. · 已于 about 2 years前审核

Kyle G. · 已于 about 2 years前审核

Diwakar K. · 已于 about 2 years前审核

Lars N. · 已于 about 2 years前审核

Dhal C. · 已于 about 2 years前审核

Shashank R. · 已于 about 2 years前审核

Fabio P. · 已于 about 2 years前审核

Piotr R. · 已于 about 2 years前审核

Adriano M. · 已于 about 2 years前审核

Gaurav M. · 已于 about 2 years前审核

Swami K. · 已于 about 2 years前审核

Fatima N. · 已于 about 2 years前审核

Vitaliy B. · 已于 about 2 years前审核

Michael C. · 已于 about 2 years前审核

Felipe B. · 已于 about 2 years前审核

Tsuokang C. · 已于 about 2 years前审核

我们无法确保发布的评价来自已购买或已使用产品的消费者。评价未经 Google 核实。