gdcloud compute health-checks create tcp

שם

‫gdcloud compute health-checks create tcp – יצירת בדיקת תקינות של TCP למאזן עומסים.

SYNOPSIS

gdcloud compute health-checks create tcp HEALTH_CHECK_NAME [flags]

דוגמאות

To create a global TCP health check "tcp-health-check", run:

    gdcloud compute health-checks create tcp tcp-health-check \
      --port=8080 \
      --global

    To create a zonal TCP health check "tcp-health-check", run:

    gdcloud compute health-checks create tcp tcp-health-check \
      --port=8080

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

      --check-interval int        Amount of time in seconds from the start of one probe to the start of the next one. Defaults to 5. (default 5)
      --global                    If set, the global health check object is created.
      --healthy-threshold int     Number of sequential probes that must succeed for the endpoint to be considered healthy. Defaults to 2. (default 2)
      --port int                  Port to use for the health check. If not specified, the backend service's port is used.
      --timeout int               Time (in seconds) to wait before claiming failure. Defaults to 5. (default 5)
      --unhealthy-threshold int   Number of sequential probes that must fail for the endpoint to be considered unhealthy. Defaults to 2. (default 2)
      --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.