gdcloud clusters get-credentials

שם

‫gdcloud clusters get-credentials – אחזור פרטי כניסה לאשכול Kubernetes.

SYNOPSIS

gdcloud clusters get-credentials CLUSTER_NAME [flags]

תיאור

מעדכנים קובץ kubeconfig עם פרטי הכניסה המתאימים ופרטי נקודת הקצה כדי להפעיל קריאות kubectl לאשכול Kubernetes ספציפי.

דוגמאות

To switch to working on a specific Kubernetes cluster named 'sample', run:

    gdcloud clusters get-credentials sample

To switch to working on a standard cluster named 'sample' in project 'foo', run:

    gdcloud clusters get-credentials sample --standard --project=foo

דגלים אופציונליים

      --standard      If set, the standard cluster type is used.
      --zone string   Zone to use for this invocation. To preset the zone flag for all commands that require it, run: "gdcloud config set core/zone ZONE". The zone flag is available only in multi-zone environments.

GDCLOUD WIDE FLAGS

הדגלים האלה זמינים לכל הפקודות: --configuration, ‏ --format, ‏ --help, ‏ --project, ‏ --quiet.

מידע נוסף זמין בדף סקירה כללית של מדריך העזר ל-CLI של gcloud.