Skip to main content

New Compute Instance

Triggers a workflow on every new compute instance created within a specific GCP zone and project.

info

Automations based on this trigger will search for new events every minute.

Parameters

ParameterDescription
ProjectProject ID for this request.
ZoneThe name of the zone for this request.

Sample Event

{
"kind": "compute#instance",
"id": "1648864868950855878",
"creationTimestamp": "2022-07-03T21:35:53.722-07:00",
"name": "gke-cluster-13-default-pool-6104c626-2a8a",
"tags": {
"items": [
"gke-cluster-13-964a6661-node"
],
"fingerprint": "Nu_56N2mrhk="
},
"machineType": "https://www.googleapis.com/compute/v1/projects/complete-verve-307313/zones/us-central1-c/machineTypes/e2-medium",
"status": "RUNNING",
"zone": "https://www.googleapis.com/compute/v1/projects/complete-verve-307313/zones/us-central1-c",
"networkInterfaces": [
{
"kind": "compute#networkInterface",
"network": "https://www.googleapis.com/compute/v1/projects/complete-verve-307313/global/networks/default",
"subnetwork": "https://www.googleapis.com/compute/v1/projects/complete-verve-307313/regions/us-central1/subnetworks/default",
"networkIP": "10.128.0.33",
"name": "nic0",
"accessConfigs": [
{
"kind": "compute#accessConfig",
"type": "ONE_TO_ONE_NAT",
"name": "external-nat",
"natIP": "34.71.142.98",
"networkTier": "PREMIUM"
}
],
"aliasIpRanges": [
{
"ipCidrRange": "10.92.3.0/24",
"subnetworkRangeName": "gke-cluster-13-pods-964a6661"
}
],
"fingerprint": "OkHxxGdGOaY=",
"stackType": "IPV4_ONLY"
}
],
"disks": [
{
"kind": "compute#attachedDisk",
"type": "PERSISTENT",
"mode": "READ_WRITE",
"source": "https://www.googleapis.com/compute/v1/projects/complete-verve-307313/zones/us-central1-c/disks/gke-cluster-13-default-pool-6104c626-2a8a",
"deviceName": "persistent-disk-0",
"index": 0,
"boot": true,
"autoDelete": true,
"licenses": [
"https://www.googleapis.com/compute/v1/projects/gke-node-images/global/licenses/gke-node",
"https://www.googleapis.com/compute/v1/projects/cos-cloud/global/licenses/cos",
"https://www.googleapis.com/compute/v1/projects/cos-cloud-shielded/global/licenses/shielded-cos",
"https://www.googleapis.com/compute/v1/projects/cos-cloud/global/licenses/cos-pcid"
],
"interface": "SCSI",
"guestOsFeatures": [
{
"type": "UEFI_COMPATIBLE"
},
{
"type": "VIRTIO_SCSI_MULTIQUEUE"
},
{
"type": "SEV_CAPABLE"
},
{
"type": "SECURE_BOOT"
}
],
"diskSizeGb": "100",
"shieldedInstanceInitialState": {
"pk": {
"content": "MIIEGTCCAwGgAwIBAgIQYB8C9RH--O1hXkpp2FVSXjANBgkqhkiG9w0BAQsFADCBkTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC0dvb2dsZSBMTEMuMR8wHQYDVQQLExZDb250YWluZXIgT3B0aW1pemVkIE9TMR4wHAYDVQQDExVVRUZJIFBsYXRmb3JtIEtleSB2MTAwHhcNMjAwODA2MTk0ODQ0WhcNMzAwODA0MTk0ODQ0WjCBkTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC0dvb2dsZSBMTEMuMR8wHQYDVQQLExZDb250YWluZXIgT3B0aW1pemVkIE9TMR4wHAYDVQQDExVVRUZJIFBsYXRmb3JtIEtleSB2MTAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQClSQ15LUf193eJfM6b5etGgz8auvdI72Cclo3fHvwXBzsm5T1QamwYAqrCTcS7MxauCTkmkXTS9ejM4NNpQWF6KG82nR88vRyKO_MnSNL8ZP-rtRu0p1X_mUYXwi0_nPkyPKLR2QJ9H2EOrw_RChWvwnu281WtfUPCYs2t2SjBCF_mgzZI8o3s8wOtL8y-Dmi9T0bGO1wYX2okz51PKbhgVGQA7KJRmeekIxEkiN7GOb_2VQqcdM9c846OlC-8abwgDvrL3YqKqhw8DnSM2AbNpZIgUTd1Ut3X-PWXVKBj3qdxjAyRez8dPWymXDji-CBoBzLsWEkUW87S1coggOABAgMB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yGd6o6ewUU9JzboppujXpk43EQH5ZJE_wJb_ujUFWcFzKHb_EkV1hI1TmBJ1-vR2kao4_1hQO6k1zLUR-MyBHY0SRU2OQxBpSez-qt7oItMBc1EanXvq9tqx0ndCTmXQYQplT5wtkPbE9sd5zwbDt8btHAgMBAAGjUDBOMB0GA1UdDgQWBBS5Tmmv3JM8w1mfP9V5xAIdjBhb7TAfBgNVHSMEGDAWgBS5Tmmv3JM8w1mfP9V5xAIdjBhb7TAMBgNVHRMEBTADAQH_MA0GCSqGSIb3DQEBCwUAA4IBAQB9BRTP37ik4jF2BmJJspMA6NHS7mxIckFCYKl-TO8zGFd3mlA6dnEw5WY-tUcBNJpAaHNJV_rzagGPpWMIoy-nAaLSSpnyhEXYTnQvzejYRijN3N0V9tmM0qgViHNBqTxdfcwlst5OUesGHPqgBOt5RRu5OGJ0rkuymWwxHOKIw43hz5FW7vhumbtJ3iy8HSFQIjSYMkr0sOzJhmvnHlpZ4pOoPNyNA9DM6smriH-2-MnJFM9w8bg6zsV5X-6KL464_FuXL_X_IWmAsAbi8Ge8ZMJjEaDrF1qkD4aLvu0MshzEdvrvQO-3Gn3Lmi_RYKR0HKZp7jXTySj76sxt9QK4",
"fileType": "X509"
}
]
}
}
],
"metadata": {
"kind": "compute#metadata",
"fingerprint": "sjxc5XMzzlo=",
"items": [
{
"key": "instance-template",
"value": "projects/334836214757/global/instanceTemplates/gke-cluster-13-default-pool-6fdf6c62"
},
{
"key": "created-by",
"value": "projects/334836214757/zones/us-central1-c/instanceGroupManagers/gke-cluster-13-default-pool-6104c626-grp"
},
{
"key": "serial-port-logging-enable",
"value": "true"
},
{
"key": "kube-labels",
"value": "cloud.google.com/gke-boot-disk=pd-standard,cloud.google.com/gke-container-runtime=containerd,cloud.google.com/gke-cpu-scaling-level=2,cloud.google.com/gke-max-pods-per-node=110,cloud.google.com/gke-nodepool=default-pool,cloud.google.com/gke-os-distribution=cos,cloud.google.com/machine-family=e2"
},
{
"key": "google-compute-enable-pcid",
"value": "true"
},
{
"key": "enable-oslogin",
"value": "false"
},
{
"key": "kubelet-config",
"value": "apiVersion: kubelet.config.k8s.io/v1beta1\nauthentication:\n anonymous:\n enabled: false\n webhook:\n enabled: true\n x509:\n clientCAFile: /etc/srv/kubernetes/pki/ca-certificates.crt\nauthorization:\n mode: Webhook\ncgroupRoot: /\nclusterDNS:\n- 10.100.16.10\nclusterDomain: cluster.local\nenableDebuggingHandlers: true\nevictionHard:\n memory.available: 100Mi\n nodefs.available: 10%\n nodefs.inodesFree: 5%\n pid.available: 10%\nfeatureGates:\n CSIMigrationGCE: true\n DynamicKubeletConfig: false\n ExecProbeTimeout: false\n InTreePluginAWSUnregister: true\n InTreePluginAzureDiskUnregister: true\n InTreePluginOpenStackUnregister: true\n InTreePluginvSphereUnregister: true\n RotateKubeletServerCertificate: true\nkernelMemcgNotification: true\nkind: KubeletConfiguration\nkubeReserved:\n cpu: 1060m\n ephemeral-storage: 41Gi\n memory: 1019Mi\nreadOnlyPort: 10255\nserverTLSBootstrap: true\nstaticPodPath: /etc/kubernetes/manifests\n"
},
{
"key": "cluster-name",
"value": "cluster-13"
},
{
"key": "kubeconfig",
"value": "apiVersion: v1\nkind: Config\nclusters:\n- cluster:\n server: https://34.69.111.78\n certificate-authority: '/etc/srv/kubernetes/pki/ca-certificates.crt'\n name: default-cluster\ncontexts:\n- context:\n cluster: default-cluster\n namespace: default\n user: exec-plugin-auth\n name: default-context\ncurrent-context: default-context\nusers:\n- name: exec-plugin-auth\n user:\n exec:\n apiVersion: \"client.authentication.k8s.io/v1alpha1\"\n command: '/home/kubernetes/bin/gke-exec-auth-plugin'\n args: [\"--cache-dir\", '/var/lib/kubelet/pki/']\n"
},
{
"key": "gci-update-strategy",
"value": "update_disabled"
},
{
"key": "gci-metrics-enabled",
"value": "true"
},
{
"key": "gci-ensure-gke-docker",
"value": "true"
},
{
"key": "configure-sh",
"value": "#!/usr/bin/env bash\n\n# Copyright 2016 The Kubernetes Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n\n# Due to the GCE custom metadata size limit, we split the entire script into two\n# files configure.sh and configure-helper.sh. The functionality of downloading\n# kubernetes configuration, manifests, docker images, and binary files are\n# put in configure.sh, which is uploaded via GCE custom metadata.\n\nset -o errexit\nset -o nounset\nset -o pipefail\n\n### Hardcoded constants\nDEFAULT_CNI_VERSION='v0.9.1'\nDEFAULT_CNI_HASH='b5a59660053a5f1a33b5dd5624d9ed61864482d9dc8e5b79c9b3afc3d6f62c9830e1c30f9ccba6ee76f5fb1ff0504e58984420cc0680b26cb643f1cb07afbd1c'\nDEFAULT_NPD_VERSION='v0.8.8'\nDEFAULT_NPD_HASH_AMD64='ba8315a29368bfc33bdc602eb02d325b0b80e295c8739da35616de5b562c372bd297a2553f3ccd4daaecd67698b659b2c7068a2d2a0b9418ad29233fb75ff3f2'\n# TODO (SergeyKanzhelev): fill up for npd 0.8.9+\nDEFAULT_NPD_HASH_ARM64='N/A'\nDEFAULT_CRICTL_VERSION='v1.21.0'\nDEFAULT_CRICTL_HASH='e4fb9822cb5f71ab8f85021c66170613aae972f4b32030e42868fb36a3bc3ea8642613df8542bf716fad903ed4d7528021ecb28b20c6330448cd2bd2b76bd776'\nDEFAULT_MOUNTER_TAR_SHA='7956fd42523de6b3107ddc3ce0e75233d2fcb78436ff07a1389b6eaac91fb2b1b72a08f7a219eaf96ba1ca4da8d45271002e0d60e0644e796c665f99bb356516'\n###\n\nRIPTIDE_FUSE_BUCKET=\"${RIPTIDE_FUSE_BUCKET:-gke-release}\"\nRIPTIDE_SNAPSHOTTER_BUCKET=\"${RIPTIDE_SNAPSHOTTER_BUCKET:-gke-release}\"\nRIPTIDE_FUSE_VERSION=\"${RIPTIDE_FUSE_VERSION:-v0.87.1}\"\nRIPTIDE_SNAPSHOTTER_VERSION=\"${RIPTIDE_SNAPSHOTTER_VERSION:-v1.4-15}\"\n\n# Standard curl flags.\nCURL_FLAGS='--fail --silent --show-error --retry 5 --retry-delay 3 --connect-timeout 10 --retry-connrefused'\n\nfunction set-broken-motd {\n cat > /etc/motd <<EOF\nBroken (or in progress) Kubernetes node setup! Check the cluster initialization status\nusing the following commands.\n\nMaster instance:\n - sudo systemctl status kube-master-installation\n - sudo systemctl status kube-master-configuration\n\nNode instance:\n - sudo systemctl status kube-node-installation\n - sudo systemctl status kube-node-configuration\nEOF\n}\n\n# A function that fetches a GCE metadata value and echoes it out.\n# Args:\n# $1 : URL path after /computeMetadata/v1/ (without heading slash).\n# $2 : An optional default value to echo out if the fetch fails.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction get-metadata-value {\n local default=\"${2:-}\"\n\n local status\n # shellcheck disable=SC2086\n curl ${CURL_FLAGS} \\\n -H 'Metadata-Flavor: Google' \\\n \"http://metadata/computeMetadata/v1/${1}\" \\\n || status=\"$?\"\n status=\"${status:-0}\"\n\n if [[ \"${status}\" -eq 0 || -z \"${default}\" ]]; then\n return \"${status}\"\n else\n echo \"${default}\"\n fi\n}\n\n# A function to fetch kube-env from GCE metadata server\n# or using hurl on the master if available\nfunction download-kube-env {\n (\n umask 077\n local kube_env_path=\"/tmp/kube-env.yaml\"\n if [[ \"$(is-master)\" == \"true\" && $(use-hurl) = \"true\" ]]; then\n local kube_env_path=\"${KUBE_HOME}/kube-env.yaml\"\n download-kube-env-hurl \"${kube_env_path}\"\n else\n local meta_path=\"http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-env\"\n echo \"Downloading kube-env via GCE metadata from ${meta_path} to ${kube_env_path}\"\n # shellcheck disable=SC2086\n retry-forever 10 curl ${CURL_FLAGS} \\\n -H \"X-Google-Metadata-Request: True\" \\\n -o \"${kube_env_path}\" \\\n \"${meta_path}\"\n fi\n\n # Convert the yaml format file into a shell-style file.\n eval \"$(python3 -c '''\nimport pipes,sys,yaml\nitems = yaml.load(sys.stdin, Loader=yaml.BaseLoader).items()\nfor k, v in items:\n print(\"readonly {var}={value}\".format(var=k, value=pipes.quote(str(v))))\n''' < \"${kube_env_path}\" > \"${KUBE_HOME}/kube-env\")\"\n\n # Leave kube-env if we are a master\n if [[ \"$(is-master)\" != \"true\" ]]; then\n rm -f \"${kube_env_path}\"\n fi\n )\n}\n\n# A function to pull kube-env from HMS using hurl\nfunction download-kube-env-hurl {\n local -r kube_env_path=\"$1\"\n local -r endpoint=$(get-metadata-value \"instance/attributes/gke-api-endpoint\")\n local -r kube_env_hms_path=$(get-metadata-value \"instance/attributes/kube-env-path\")\n\n echo \"Downloading kube-env via hurl from ${kube_env_hms_path} to ${kube_env_path}\"\n retry-forever 30 ${KUBE_HOME}/bin/hurl --hms_address $endpoint \\\n --dst \"${kube_env_path}\" \\\n \"${kube_env_hms_path}\"\n chmod 600 \"${kube_env_path}\"\n}\n\nfunction download-kubelet-config {\n local -r dest=\"$1\"\n echo \"Downloading Kubelet config file, if it exists\"\n # Fetch kubelet config file from GCE metadata server.\n (\n umask 077\n local -r tmp_kubelet_config=\"/tmp/kubelet-config.yaml\"\n # shellcheck disable=SC2086\n retry-forever 10 curl ${CURL_FLAGS} \\\n -H \"X-Google-Metadata-Request: True\" \\\n -o \"${tmp_kubelet_config}\" \\\n http://metadata.google.internal/computeMetadata/v1/instance/attributes/kubelet-config\n # only write to the final location if curl succeeds\n mv \"${tmp_kubelet_config}\" \"${dest}\"\n )\n}\n\nfunction download-kube-master-certs {\n # Fetch kube-master-certs from GCE metadata server.\n (\n umask 077\n local -r tmp_kube_master_certs=\"/tmp/kube-master-certs.yaml\"\n # shellcheck disable=SC2086\n retry-forever 10 curl ${CURL_FLAGS} \\\n -H \"X-Google-Metadata-Request: True\" \\\n -o \"${tmp_kube_master_certs}\" \\\n http://metadata.google.internal/computeMetadata/v1/instance/attributes/kube-master-certs\n # Convert the yaml format file into a shell-style file.\n eval \"$(python3 -c '''\nimport pipes,sys,yaml\nitems = yaml.load(sys.stdin, Loader=yaml.BaseLoader).items()\nfor k, v in items:\n print(\"readonly {var}={value}\".format(var=k, value=pipes.quote(str(v))))\n''' < \"${tmp_kube_master_certs}\" > \"${KUBE_HOME}/kube-master-certs\")\"\n rm -f \"${tmp_kube_master_certs}\"\n )\n}\n\nfunction validate-hash {\n local -r file=\"$1\"\n local -r expected=\"$2\"\n\n actual_sha1=$(sha1sum \"${file}\" | awk '{ print $1 }') || true\n actual_sha512=$(sha512sum \"${file}\" | awk '{ print $1 }') || true\n if [[ \"${actual_sha1}\" != \"${expected}\" ]] && [[ \"${actual_sha512}\" != \"${expected}\" ]]; then\n echo \"== ${file} corrupted, sha1 ${actual_sha1}/sha512 ${actual_sha512} doesn't match expected ${expected} ==\"\n return 1\n fi\n}\n\n# Get default service account credentials of the VM.\nGCE_METADATA_INTERNAL=\"http://metadata.google.internal/computeMetadata/v1/instance\"\nfunction get-credentials {\n # shellcheck disable=SC2086\n curl ${CURL_FLAGS} \\\n -H \"Metadata-Flavor: Google\" \\\n \"${GCE_METADATA_INTERNAL}/service-accounts/default/token\" \\\n | python3 -c 'import sys; import json; print(json.loads(sys.stdin.read())[\"access_token\"])'\n}\n\nfunction valid-storage-scope {\n # shellcheck disable=SC2086\n curl ${CURL_FLAGS} \\\n -H \"Metadata-Flavor: Google\" \\\n \"${GCE_METADATA_INTERNAL}/service-accounts/default/scopes\" \\\n | grep -E \"auth/devstorage|auth/cloud-platform\"\n}\n\n# Determine if this node is a master using metadata\nfunction is-master {\n local -r is_master_val=${KUBERNETES_MASTER:-$(get-metadata-value \"instance/attributes/is-master-node\")}\n local result=\"false\"\n if [[ ${is_master_val:-} == \"true\" ]]; then\n result=\"true\"\n fi\n echo $result\n}\n\n# A function that returns \"true\" if hurl should be used, \"false\" otherwise.\nfunction use-hurl {\n local -r enable_hms_read=${ENABLE_HMS_READ:-$(get-metadata-value \"instance/attributes/enable_hms_read\")}\n local result=\"false\"\n\n if [[ -f \"${KUBE_HOME}/bin/hurl\" && \"${enable_hms_read}\" == \"true\" ]]; then\n result=\"true\"\n fi\n echo $result\n}\n\n# Retry a download until we get it. Takes a hash and a set of URLs.\n#\n# $1 is the sha512/sha1 hash of the URL. Can be \"\" if the sha512/sha1 hash is unknown.\n# $2+ are the URLs to download.\nfunction download-or-bust {\n local -r hash=\"$1\"\n shift 1\n\n while true; do\n for url in \"$@\"; do\n local file=\"${url##*/}\"\n rm -f \"${file}\"\n # if the url belongs to GCS API we should use oauth2_token in the headers if the VM service account has storage scopes\n local curl_headers=\"\"\n\n if [[ \"$url\" =~ ^https://storage.googleapis.com.* ]] ; then\n local canUseCredentials=0\n\n echo \"Getting the scope of service account configured for VM.\"\n if ! valid-storage-scope ; then\n canUseCredentials=1\n # this behavior is preserved for backward compatibility. We want to fail fast if SA is not available\n # and try to download without SA if scope does not exist on SA\n echo \"No service account or service account without storage scope. Attempt to download without service account token.\"\n fi\n\n if [[ \"${canUseCredentials}\" == \"0\" ]] ; then\n echo \"Getting the service account access token configured for VM.\"\n local access_token=\"\";\n if access_token=$(get-credentials); then\n echo \"Service account access token is received. Downloading ${url} using this token.\"\n else\n echo \"Cannot get a service account token. Exiting.\"\n exit 1\n fi\n\n curl_headers=${access_token:+Authorization: Bearer \"${access_token}\"}\n fi\n fi\n if ! curl ${curl_headers:+-H \"${curl_headers}\"} -f --ipv4 -Lo \"${file}\" --connect-timeout 20 --retry 6 --retry-delay 10 --retry-connrefused \"${url}\"; then\n echo \"== Failed to download ${url}. Retrying. ==\"\n elif [[ -n \"${hash}\" ]] && ! validate-hash \"${file}\" \"${hash}\"; then\n echo \"== Hash validation of ${url} failed. Retrying. ==\"\n else\n if [[ -n \"${hash}\" ]]; then\n echo \"== Downloaded ${url} (HASH = ${hash}) ==\"\n else\n echo \"== Downloaded ${url} ==\"\n fi\n return\n fi\n done\n done\n}\n\nfunction record-preload-info {\n echo \"$1,$2\" >> \"${KUBE_HOME}/preload_info\"\n}\n\nfunction is-preloaded {\n local -r key=$1\n local -r value=$2\n grep -qs \"${key},${value}\" \"${KUBE_HOME}/preload_info\"\n}\n\nfunction split-commas {\n echo -e \"${1//,/'\\n'}\"\n}\n\nfunction remount-flexvolume-directory {\n local -r flexvolume_plugin_dir=$1\n mkdir -p \"$flexvolume_plugin_dir\"\n mount --bind \"$flexvolume_plugin_dir\" \"$flexvolume_plugin_dir\"\n mount -o remount,exec \"$flexvolume_plugin_dir\"\n}\n\nfunction install-gci-mounter-tools {\n CONTAINERIZED_MOUNTER_HOME=\"${KUBE_HOME}/containerized_mounter\"\n local -r mounter_tar_sha=\"${DEFAULT_MOUNTER_TAR_SHA}\"\n if is-preloaded \"mounter\" \"${mounter_tar_sha}\"; then\n echo \"mounter is preloaded.\"\n return\n fi\n\n echo \"Downloading gci mounter tools.\"\n mkdir -p \"${CONTAINERIZED_MOUNTER_HOME}\"\n chmod a+x \"${CONTAINERIZED_MOUNTER_HOME}\"\n mkdir -p \"${CONTAINERIZED_MOUNTER_HOME}/rootfs\"\n download-or-bust \"${mounter_tar_sha}\" \"https://storage.googleapis.com/kubernetes-release/gci-mounter/mounter.tar\"\n cp \"${KUBE_HOME}/kubernetes/server/bin/mounter\" \"${CONTAINERIZED_MOUNTER_HOME}/mounter\"\n chmod a+x \"${CONTAINERIZED_MOUNTER_HOME}/mounter\"\n mv \"${KUBE_HOME}/mounter.tar\" /tmp/mounter.tar\n tar xf /tmp/mounter.tar -C \"${CONTAINERIZED_MOUNTER_HOME}/rootfs\"\n rm /tmp/mounter.tar\n mkdir -p \"${CONTAINERIZED_MOUNTER_HOME}/rootfs/var/lib/kubelet\"\n\n record-preload-info \"mounter\" \"${mounter_tar_sha}\"\n}\n\n# Install node problem detector binary.\nfunction install-node-problem-detector {\n if [[ \"${HOST_ARCH}\" == \"amd64\" ]]; then\n DEFAULT_NPD_HASH=${DEFAULT_NPD_HASH_AMD64}\n elif [[ \"${HOST_ARCH}\" == \"arm64\" ]]; then\n DEFAULT_NPD_HASH=${DEFAULT_NPD_HASH_ARM64}\n else\n # no other architectures are supported currently.\n # Assumption is that this script only runs on linux,\n # see cluster/gce/windows/k8s-node-setup.psm1 for windows\n # https://github.com/kubernetes/node-problem-detector/releases/\n DEFAULT_NPD_HASH='N/A'\n fi\n\n local -r npd_version=\"${DEFAULT_NPD_VERSION}\"\n local -r npd_hash=\"${DEFAULT_NPD_HASH}\"\n local -r npd_tar=\"node-problem-detector-${npd_version}-${HOST_PLATFORM}_${HOST_ARCH}.tar.gz\"\n\n if is-preloaded \"${npd_tar}\" \"${npd_hash}\"; then\n echo \"${npd_tar} is preloaded.\"\n return\n fi\n\n echo \"Downloading ${npd_tar}.\"\n local -r npd_release_path=\"${NODE_PROBLEM_DETECTOR_RELEASE_PATH:-https://storage.googleapis.com/kubernetes-release}\"\n download-or-bust \"${npd_hash}\" \"${npd_release_path}/node-problem-detector/${npd_tar}\"\n local -r npd_dir=\"${KUBE_HOME}/node-problem-detector\"\n mkdir -p \"${npd_dir}\"\n tar xzf \"${KUBE_HOME}/${npd_tar}\" -C \"${npd_dir}\" --overwrite\n mv \"${npd_dir}/bin\"/* \"${KUBE_BIN}\"\n chmod a+x \"${KUBE_BIN}/node-problem-detector\"\n rmdir \"${npd_dir}/bin\"\n rm -f \"${KUBE_HOME}/${npd_tar}\"\n\n record-preload-info \"${npd_tar}\" \"${npd_hash}\"\n}\n\nfunction install-cni-binaries {\n local -r cni_version=${CNI_VERSION:-$DEFAULT_CNI_VERSION}\n if [[ -n \"${CNI_VERSION:-}\" ]]; then\n local -r cni_hash=\"${CNI_HASH:-}\"\n else\n local -r cni_hash=\"${DEFAULT_CNI_HASH}\"\n fi\n\n local -r cni_tar=\"${CNI_TAR_PREFIX}${cni_version}.tgz\"\n local -r cni_url=\"${CNI_STORAGE_URL_BASE}/${cni_version}/${cni_tar}\"\n\n if is-preloaded \"${cni_tar}\" \"${cni_hash}\"; then\n echo \"${cni_tar} is preloaded.\"\n return\n fi\n\n echo \"Downloading cni binaries\"\n download-or-bust \"${cni_hash}\" \"${cni_url}\"\n local -r cni_dir=\"${KUBE_HOME}/cni\"\n mkdir -p \"${cni_dir}/bin\"\n tar xzf \"${KUBE_HOME}/${cni_tar}\" -C \"${cni_dir}/bin\" --overwrite\n mv \"${cni_dir}/bin\"/* \"${KUBE_BIN}\"\n rmdir \"${cni_dir}/bin\"\n rm -f \"${KUBE_HOME}/${cni_tar}\"\n\n record-preload-info \"${cni_tar}\" \"${cni_hash}\"\n}\n\n# Install crictl binary.\n# Assumptions: HOST_PLATFORM and HOST_ARCH are specified by calling detect_host_info.\nfunction install-crictl {\n if [[ -n \"${CRICTL_VERSION:-}\" ]]; then\n local -r crictl_version=\"${CRICTL_VERSION}\"\n local -r crictl_hash=\"${CRICTL_TAR_HASH}\"\n else\n local -r crictl_version=\"${DEFAULT_CRICTL_VERSION}\"\n local -r crictl_hash=\"${DEFAULT_CRICTL_HASH}\"\n fi\n local -r crictl=\"crictl-${crictl_version}-${HOST_PLATFORM}-${HOST_ARCH}.tar.gz\"\n\n # Create crictl config file.\n cat > /etc/crictl.yaml <<EOF\nruntime-endpoint: ${CONTAINER_RUNTIME_ENDPOINT:-unix:///var/run/dockershim.sock}\nEOF\n\n if is-preloaded \"${crictl}\" \"${crictl_hash}\"; then\n echo \"crictl is preloaded\"\n return\n fi\n\n echo \"Downloading crictl\"\n local -r crictl_path=\"https://storage.googleapis.com/k8s-artifacts-cri-tools/release/${crictl_version}\"\n download-or-bust \"${crictl_hash}\" \"${crictl_path}/${crictl}\"\n tar xf \"${crictl}\"\n mv crictl \"${KUBE_BIN}/crictl\"\n\n record-preload-info \"${crictl}\" \"${crictl_hash}\"\n}\n\nfunction install-exec-auth-plugin {\n if [[ ! \"${EXEC_AUTH_PLUGIN_URL:-}\" ]]; then\n return\n fi\n local -r plugin_url=\"${EXEC_AUTH_PLUGIN_URL}\"\n local -r plugin_hash=\"${EXEC_AUTH_PLUGIN_HASH}\"\n\n if is-preloaded \"gke-exec-auth-plugin\" \"${plugin_hash}\"; then\n echo \"gke-exec-auth-plugin is preloaded\"\n return\n fi\n\n echo \"Downloading gke-exec-auth-plugin binary\"\n download-or-bust \"${plugin_hash}\" \"${plugin_url}\"\n mv \"${KUBE_HOME}/gke-exec-auth-plugin\" \"${KUBE_BIN}/gke-exec-auth-plugin\"\n chmod a+x \"${KUBE_BIN}/gke-exec-auth-plugin\"\n\n if [[ ! \"${EXEC_AUTH_PLUGIN_LICENSE_URL:-}\" ]]; then\n return\n fi\n local -r license_url=\"${EXEC_AUTH_PLUGIN_LICENSE_URL}\"\n echo \"Downloading gke-exec-auth-plugin license\"\n download-or-bust \"\" \"${license_url}\"\n mv \"${KUBE_HOME}/LICENSE\" \"${KUBE_BIN}/gke-exec-auth-plugin-license\"\n\n record-preload-info \"gke-exec-auth-plugin\" \"${plugin_hash}\"\n}\n\nfunction install-kube-manifests {\n # Put kube-system pods manifests in ${KUBE_HOME}/kube-manifests/.\n local dst_dir=\"${KUBE_HOME}/kube-manifests\"\n mkdir -p \"${dst_dir}\"\n local manifests_tar_urls\n while IFS= read -r url; do\n manifests_tar_urls+=(\"$url\")\n done < <(split-commas \"${KUBE_MANIFESTS_TAR_URL}\")\n local -r manifests_tar=\"${manifests_tar_urls[0]##*/}\"\n if [ -n \"${KUBE_MANIFESTS_TAR_HASH:-}\" ]; then\n local -r manifests_tar_hash=\"${KUBE_MANIFESTS_TAR_HASH}\"\n else\n echo \"Downloading k8s manifests hash (not found in env)\"\n download-or-bust \"\" \"${manifests_tar_urls[@]/.tar.gz/.tar.gz.sha512}\"\n local -r manifests_tar_hash=$(cat \"${manifests_tar}.sha512\")\n fi\n\n if is-preloaded \"${manifests_tar}\" \"${manifests_tar_hash}\"; then\n echo \"${manifests_tar} is preloaded.\"\n return\n fi\n\n echo \"Downloading k8s manifests tar\"\n download-or-bust \"${manifests_tar_hash}\" \"${manifests_tar_urls[@]}\"\n tar xzf \"${KUBE_HOME}/${manifests_tar}\" -C \"${dst_dir}\" --overwrite\n local -r kube_addon_registry=\"${KUBE_ADDON_REGISTRY:-k8s.gcr.io}\"\n if [[ \"${kube_addon_registry}\" != \"k8s.gcr.io\" ]]; then\n find \"${dst_dir}\" \\(-name '*.yaml' -or -name '*.yaml.in'\\) -print0 | \\\n xargs -0 sed -ri \"s@(image:\\s.*)k8s.gcr.io@\\1${kube_addon_registry}@\"\n find \"${dst_dir}\" \\(-name '*.manifest' -or -name '*.json'\\) -print0 | \\\n xargs -0 sed -ri \"s@(image\\\":\\s+\\\")k8s.gcr.io@\\1${kube_addon_registry}@\"\n fi\n cp \"${dst_dir}/kubernetes/gci-trusty/gci-configure-helper.sh\" \"${KUBE_BIN}/configure-helper.sh\"\n cp \"${dst_dir}/kubernetes/gci-trusty/configure-kubeapiserver.sh\" \"${KUBE_BIN}/configure-kubeapiserver.sh\"\n if [[ -e \"${dst_dir}/kubernetes/gci-trusty/gke-internal-configure.sh\" ]]; then\n cp \"${dst_dir}/kubernetes/gci-trusty/gke-internal-configure.sh\" \"${KUBE_BIN}/\"\n fi\n if [[ -e \"${dst_dir}/kubernetes/gci-trusty/gke-internal-configure-helper.sh\" ]]; then\n cp \"${dst_dir}/kubernetes/gci-trusty/gke-internal-configure-helper.sh\" \"${KUBE_BIN}/\"\n fi\n\n cp \"${dst_dir}/kubernetes/gci-trusty/health-monitor.sh\" \"${KUBE_BIN}/health-monitor.sh\"\n cp \"${dst_dir}/kubernetes/gci-trusty/networkd-monitor.sh\" \"${KUBE_BIN}/networkd-monitor.sh\"\n\n rm -f \"${KUBE_HOME}/${manifests_tar}\"\n rm -f \"${KUBE_HOME}/${manifests_tar}.sha512\"\n\n record-preload-info \"${manifests_tar}\" \"${manifests_tar_hash}\"\n}\n\n# Installs hurl to ${KUBE_HOME}/bin/hurl if not already installed.\nfunction install-hurl {\n cd \"${KUBE_HOME}\"\n if [[ -f \"${KUBE_HOME}/bin/hurl\" ]]; then\n echo \"install-hurl: hurl already installed\"\n return\n fi\n\n local -r hurl_gcs_att=\"instance/attributes/hurl-gcs-url\"\n local -r hurl_gcs_url=${HURL_GCS_URL:-$(get-metadata-value \"${hurl_gcs_att}\")}\n\n if [[ -z \"${hurl_gcs_url}\" ]]; then\n # URL not present in GCE Instance Metadata\n echo \"install-hurl: Unable to find GCE metadata ${hurl_gcs_att}\"\n return\n fi\n\n # Download hurl binary from a GCS bucket.\n local -r hurl_bin=\"hurl\"\n echo \"install-hurl: Installing hurl from ${hurl_gcs_url} ... \"\n download-or-bust \"\" \"${hurl_gcs_url}\"\n if [[ -f \"${KUBE_HOME}/${hurl_bin}\" ]]; then\n chmod a+x ${KUBE_HOME}/${hurl_bin}\n mv \"${KUBE_HOME}/${hurl_bin}\" \"${KUBE_BIN}/${hurl_bin}\"\n echo \"install-hurl: hurl installed to ${KUBE_BIN}/${hurl_bin}\"\n return\n fi\n}\n\n# Installs inplace to ${KUBE_HOME}/bin/inplace if not already installed.\nfunction install-inplace {\n cd \"${KUBE_HOME}\"\n if [[ -f \"${KUBE_HOME}/bin/inplace\" ]]; then\n echo \"install-inplace: inplace already installed\"\n return\n fi\n local -r inplace_gcs_att=\"instance/attributes/inplace-gcs-url\"\n local -r inplace_gcs_url=${INPLACE_GCS_URL:-$(get-metadata-value \"${inplace_gcs_att}\")}\n if [[ -z \"${inplace_gcs_url}\" ]]; then\n # URL not present in GCE Instance Metadata\n echo \"install-inplace: Unable to find GCE metadata ${inplace_gcs_att}\"\n return\n fi\n echo \"install-inplace: Installing inplace from ${inplace_gcs_url} ...\"\n download-or-bust \"\" \"${inplace_gcs_url}\"\n local -r inplace_bin=\"inplace\"\n if [[ -f \"${KUBE_HOME}/${inplace_bin}\" ]]; then\n mv \"${KUBE_HOME}/${inplace_bin}\" \"${KUBE_BIN}/${inplace_bin}\"\n if [[ ! -d \"${KUBE_HOME}/${inplace_bin}\" ]]; then\n mkdir -p \"${KUBE_HOME}/${inplace_bin}\"\n fi\n cat > \"${KUBE_HOME}/${inplace_bin}/inplace.hash\" <<EOF\n${inplace_gcs_url}\nEOF\n echo \"install-inplace: inplace installed to ${KUBE_BIN}/${inplace_bin}\"\n return\n fi\n}\n\n# A function to download in-place component manifests if in-place agent is\n# present.\nfunction inplace-run-once {\n if [[ -f \"${KUBE_HOME}/bin/inplace\" ]]; then\n echo \"inplace-run-once: using inplace to download inplace component manefists\"\n local dst_dir=\"${KUBE_HOME}/kube-manifests/kubernetes/gci-trusty\"\n mkdir -p \"${dst_dir}/in-place\"\n mkdir -p \"${dst_dir}/gce-extras/in-place\"\n ${KUBE_HOME}/bin/inplace --mode=run-once --in_place_addon_path=\"${dst_dir}/gce-extras/in-place\" --master_pod_path=\"${dst_dir}/in-place\"\n fi\n}\n\nfunction install-auger {\n echo \"Downloading auger binary\"\n if [[ -f \"${KUBE_HOME}/bin/auger\" ]]; then\n echo \"auger is already installed\"\n return\n fi\n AUGER_STORE_PATH=\"${AUGER_STORE_PATH:-https://storage.googleapis.com/gke-release-staging/auger}\"\n AUGER_VERSION=\"${AUGER_VERSION:-v1.0.0-gke.1}\"\n download-or-bust \"\" \"${AUGER_STORE_PATH}/${AUGER_VERSION}/auger.sha1\"\n sha1=\"$(cat auger.sha1)\"\n readonly sha1 # Declare readonly separately to avoid masking error values.\n rm -f \"auger.sha1\"\n download-or-bust \"${sha1}\" \"${AUGER_STORE_PATH}/${AUGER_VERSION}/auger\"\n mv \"${KUBE_HOME}/auger\" \"${KUBE_HOME}/bin/auger\"\n chmod a+x \"${KUBE_HOME}/bin/auger\"\n record-preload-info \"auger\" \"${sha1}\"\n}\n\n# Extract etcdctl binary from etcd image.\nfunction install-etcdctl {\n echo \"Installing etcdctl binary\"\n if [[ -f \"${KUBE_HOME}/bin/etcdctl\" ]]; then\n echo \"etcdctl is already installed\"\n return\n fi\n local -r etcd_image=\"gcr.io/gke-master-images/etcd:${ETCDCTL_VERSION}\"\n container_id=\"$(docker create \"${etcd_image}\" sh)\"\n readonly containerId\n docker cp \"${container_id}:usr/local/bin/etcdctl\" \"${KUBE_HOME}/bin/etcdctl\"\n chmod a+x \"${KUBE_HOME}/bin/etcdctl\"\n docker rm \"${container_id}\"\n docker rmi \"${etcd_image}\"\n}\n\nfunction install-gcfsd {\n echo \"Downloading Riptide FUSE client\"\n if is-preloaded \"gcfsd\" \"${RIPTIDE_FUSE_VERSION}\"; then\n echo \"gcfsd is preloaded.\"\n return\n fi\n RIPTIDE_FUSE_STORE_PATH=\"https://storage.googleapis.com/${RIPTIDE_FUSE_BUCKET}/gcfsd/${RIPTIDE_FUSE_VERSION}\"\n if [[ \"${RIPTIDE_FUSE_VERSION}\" > v0.19.0 ]] && [[ \"${RIPTIDE_FUSE_VERSION}\" != v0.4.0 ]] ; then\n download-or-bust \"\" \"${RIPTIDE_FUSE_STORE_PATH}/gcfsd.tar.gz\"\n fi\n download-or-bust \"\" \"${RIPTIDE_FUSE_STORE_PATH}/gcfsd\"\n mv \"${KUBE_HOME}/gcfsd\" \"${KUBE_HOME}/bin/gcfsd\"\n chmod a+x \"${KUBE_HOME}/bin/gcfsd\"\n record-preload-info \"gcfsd\" \"${RIPTIDE_FUSE_VERSION}\"\n}\n\nfunction install-riptide-snapshotter {\n echo \"Downloading Riptide snapshotter\"\n if is-preloaded \"containerd-gcfs-grpc\" \"${RIPTIDE_SNAPSHOTTER_VERSION}\"; then\n echo \"containerd-gcfs-grpc is preloaded.\"\n return\n fi\n RIPTIDE_SNAPSHOTTER_STORE_PATH=\"https://storage.googleapis.com/${RIPTIDE_SNAPSHOTTER_BUCKET}/gcfs-snapshotter/${RIPTIDE_SNAPSHOTTER_VERSION}\"\n if [[ \"${RIPTIDE_SNAPSHOTTER_VERSION}\" > v1.4-2 ]]; then\n download-or-bust \"\" \"${RIPTIDE_SNAPSHOTTER_STORE_PATH}/containerd-gcfs-grpc.tar.gz\"\n fi\n download-or-bust \"\" \"${RIPTIDE_SNAPSHOTTER_STORE_PATH}/containerd-gcfs-grpc\"\n mv \"${KUBE_HOME}/containerd-gcfs-grpc\" \"${KUBE_HOME}/bin/containerd-gcfs-grpc\"\n chmod a+x \"${KUBE_HOME}/bin/containerd-gcfs-grpc\"\n record-preload-info \"containerd-gcfs-grpc\" \"${RIPTIDE_SNAPSHOTTER_VERSION}\"\n}\n\n# Install Riptide FUSE client and Riptide snapshotter\nfunction install-riptide {\n install-gcfsd\n install-riptide-snapshotter\n}\n\n# A helper function for loading a docker image. It keeps trying up to 5 times.\n#\n# $1: Full path of the docker image\nfunction try-load-docker-image {\n local -r img=$1\n echo \"Try to load docker image file ${img}\"\n # Temporarily turn off errexit, because we don't want to exit on first failure.\n set +e\n local -r max_attempts=5\n local -i attempt_num=1\n\n if [[ \"${CONTAINER_RUNTIME_NAME:-}\" == \"docker\" ]]; then\n load_image_command=${LOAD_IMAGE_COMMAND:-docker load -i}\n elif [[ \"${CONTAINER_RUNTIME_NAME:-}\" == \"containerd\" || \"${CONTAINERD_TEST:-}\" == \"containerd\" ]]; then\n load_image_command=${LOAD_IMAGE_COMMAND:-ctr -n=k8s.io images import}\n else\n load_image_command=\"${LOAD_IMAGE_COMMAND:-}\"\n fi\n\n # Deliberately word split load_image_command\n # shellcheck disable=SC2086\n until timeout 30 ${load_image_command} \"${img}\"; do\n if [[ \"${attempt_num}\" == \"${max_attempts}\" ]]; then\n echo \"Fail to load docker image file ${img} using ${load_image_command} after ${max_attempts} retries. Exit!!\"\n exit 1\n else\n attempt_num=$((attempt_num+1))\n sleep 5\n fi\n done\n # Re-enable errexit.\n set -e\n}\n\n# Loads kube-system docker images. It is better to do it before starting kubelet,\n# as kubelet will restart docker daemon, which may interfere with loading images.\nfunction load-docker-images {\n echo \"Start loading kube-system docker images\"\n local -r img_dir=\"${KUBE_HOME}/kube-docker-files\"\n if [[ \"${KUBERNETES_MASTER:-}\" == \"true\" ]]; then\n try-load-docker-image \"${img_dir}/kube-apiserver.tar\"\n try-load-docker-image \"${img_dir}/kube-controller-manager.tar\"\n try-load-docker-image \"${img_dir}/kube-scheduler.tar\"\n else\n try-load-docker-image \"${img_dir}/kube-proxy.tar\"\n fi\n}\n\n# If we are on ubuntu we can try to install docker\nfunction install-docker {\n # bailout if we are not on ubuntu\n if ! command -v apt-get >/dev/null 2>&1; then\n echo \"Unable to automatically install docker. Bailing out...\"\n return\n fi\n # Install Docker deps, some of these are already installed in the image but\n # that's fine since they won't re-install and we can reuse the code below\n # for another image someday.\n apt-get update\n apt-get install -y --no-install-recommends \\\n apt-transport-https \\\n ca-certificates \\\n socat \\\n curl \\\n gnupg2 \\\n software-properties-common \\\n lsb-release\n\n release=$(lsb_release -cs)\n\n # Add the Docker apt-repository\n # shellcheck disable=SC2086\n curl ${CURL_FLAGS} \\\n --location \\\n \"https://download.docker.com/${HOST_PLATFORM}/$(. /etc/os-release; echo \"$ID\")/gpg\" \\\n | apt-key add -\n add-apt-repository \\\n \"deb [arch=${HOST_ARCH}] https://download.docker.com/${HOST_PLATFORM}/$(. /etc/os-release; echo \"$ID\") \\\n $release stable\"\n\n # Install Docker\n apt-get update && \\\n apt-get install -y --no-install-recommends \"${GCI_DOCKER_VERSION:-\"docker-ce=5:19.03.*\"}\"\n rm -rf /var/lib/apt/lists/*\n}\n\n# If we are on ubuntu we can try to install containerd\nfunction install-containerd-ubuntu {\n # bailout if we are not on ubuntu\n if [[ -z \"$(command -v lsb_release)\" || $(lsb_release -si) != \"Ubuntu\" ]]; then\n echo \"Unable to automatically install containerd in non-ubuntu image. Bailing out...\"\n exit 2\n fi\n\n # Install dependencies, some of these are already installed in the image but\n # that's fine since they won't re-install and we can reuse the code below\n # for another image someday.\n apt-get update\n apt-get install -y --no-install-recommends \\\n apt-transport-https \\\n ca-certificates \\\n socat \\\n curl \\\n gnupg2 \\\n software-properties-common \\\n lsb-release\n\n release=$(lsb_release -cs)\n\n # Add the Docker apt-repository (as we install containerd from there)\n # shellcheck disable=SC2086\n curl ${CURL_FLAGS} \\\n --location \\\n \"https://download.docker.com/${HOST_PLATFORM}/$(. /etc/os-release; echo \"$ID\")/gpg\" \\\n | apt-key add -\n add-apt-repository \\\n \"deb [arch=${HOST_ARCH}] https://download.docker.com/${HOST_PLATFORM}/$(. /etc/os-release; echo \"$ID\") \\\n $release stable\"\n\n # Install containerd from Docker repo\n apt-get update && \\\n apt-get install -y --no-install-recommends containerd\n rm -rf /var/lib/apt/lists/*\n\n # Override to latest versions of containerd and runc\n systemctl stop containerd\n if [[ -n \"${UBUNTU_INSTALL_CONTAINERD_VERSION:-}\" ]]; then\n # TODO(https://github.com/containerd/containerd/issues/2901): Remove this check once containerd has arm64 release.\n if [[ $(dpkg --print-architecture) != \"amd64\" ]]; then\n echo \"Unable to automatically install containerd in non-amd64 image. Bailing out...\"\n exit 2\n fi\n # containerd versions have slightly different url(s), so try both\n # shellcheck disable=SC2086\n ( curl ${CURL_FLAGS} \\\n --location \\\n \"https://github.com/containerd/containerd/releases/download/${UBUNTU_INSTALL_CONTAINERD_VERSION}/containerd-${UBUNTU_INSTALL_CONTAINERD_VERSION:1}-${HOST_PLATFORM}-${HOST_ARCH}.tar.gz\" \\\n || curl ${CURL_FLAGS} \\\n --location \\\n \"https://github.com/containerd/containerd/releases/download/${UBUNTU_INSTALL_CONTAINERD_VERSION}/containerd-${UBUNTU_INSTALL_CONTAINERD_VERSION:1}.${HOST_PLATFORM}-${HOST_ARCH}.tar.gz\" ) \\\n | tar --overwrite -xzv -C /usr/\n fi\n if [[ -n \"${UBUNTU_INSTALL_RUNC_VERSION:-}\" ]]; then\n # TODO: Remove this check once runc has arm64 release.\n if [[ $(dpkg --print-architecture) != \"amd64\" ]]; then\n echo \"Unable to automatically install runc in non-amd64. Bailing out...\"\n exit 2\n fi\n # shellcheck disable=SC2086\n curl ${CURL_FLAGS} \\\n --location \\\n \"https://github.com/opencontainers/runc/releases/download/${UBUNTU_INSTALL_RUNC_VERSION}/runc.${HOST_ARCH}\" --output /usr/sbin/runc \\\n && chmod 755 /usr/sbin/runc\n fi\n sudo systemctl start containerd\n}\n\nfunction ensure-container-runtime {\n container_runtime=\"${CONTAINER_RUNTIME:-docker}\"\n if [[ \"${container_runtime}\" == \"docker\" ]]; then\n if ! command -v docker >/dev/null 2>&1; then\n install-docker\n if ! command -v docker >/dev/null 2>&1; then\n echo \"ERROR docker not found. Aborting.\"\n exit 2\n fi\n fi\n docker version\n elif [[ \"${container_runtime}\" == \"containerd\" ]]; then\n # Install containerd/runc if requested\n if [[ -n \"${UBUNTU_INSTALL_CONTAINERD_VERSION:-}\" || -n \"${UBUNTU_INSTALL_RUNC_VERSION:-}\" ]]; then\n install-containerd-ubuntu\n fi\n # Verify presence and print versions of ctr, containerd, runc\n if ! command -v ctr >/dev/null 2>&1; then\n echo \"ERROR ctr not found. Aborting.\"\n exit 2\n fi\n ctr --version\n\n if ! command -v containerd >/dev/null 2>&1; then\n echo \"ERROR containerd not found. Aborting.\"\n exit 2\n fi\n containerd --version\n\n if ! command -v runc >/dev/null 2>&1; then\n echo \"ERROR runc not found. Aborting.\"\n exit 2\n fi\n runc --version\n fi\n}\n\n# Downloads kubernetes binaries and kube-system manifest tarball, unpacks them,\n# and places them into suitable directories. Files are placed in /home/kubernetes.\nfunction install-kube-binary-config {\n cd \"${KUBE_HOME}\"\n local server_binary_tar_urls\n while IFS= read -r url; do\n server_binary_tar_urls+=(\"$url\")\n done < <(split-commas \"${SERVER_BINARY_TAR_URL}\")\n local -r server_binary_tar=\"${server_binary_tar_urls[0]##*/}\"\n if [[ -n \"${SERVER_BINARY_TAR_HASH:-}\" ]]; then\n local -r server_binary_tar_hash=\"${SERVER_BINARY_TAR_HASH}\"\n else\n echo \"Downloading binary release sha512 (not found in env)\"\n download-or-bust \"\" \"${server_binary_tar_urls[@]/.tar.gz/.tar.gz.sha512}\"\n local -r server_binary_tar_hash=$(cat \"${server_binary_tar}.sha512\")\n fi\n\n if is-preloaded \"${server_binary_tar}\" \"${server_binary_tar_hash}\"; then\n echo \"${server_binary_tar} is preloaded.\"\n else\n echo \"Downloading binary release tar\"\n download-or-bust \"${server_binary_tar_hash}\" \"${server_binary_tar_urls[@]}\"\n tar xzf \"${KUBE_HOME}/${server_binary_tar}\" -C \"${KUBE_HOME}\" --overwrite\n # Copy docker_tag and image files to ${KUBE_HOME}/kube-docker-files.\n local -r src_dir=\"${KUBE_HOME}/kubernetes/server/bin\"\n local dst_dir=\"${KUBE_HOME}/kube-docker-files\"\n mkdir -p \"${dst_dir}\"\n cp \"${src_dir}/\"*.docker_tag \"${dst_dir}\"\n if [[ \"${KUBERNETES_MASTER:-}\" == \"false\" ]]; then\n cp \"${src_dir}/kube-proxy.tar\" \"${dst_dir}\"\n else\n cp \"${src_dir}/kube-apiserver.tar\" \"${dst_dir}\"\n cp \"${src_dir}/kube-controller-manager.tar\" \"${dst_dir}\"\n cp \"${src_dir}/kube-scheduler.tar\" \"${dst_dir}\"\n cp -r \"${KUBE_HOME}/kubernetes/addons\" \"${dst_dir}\"\n fi\n load-docker-images\n mv \"${src_dir}/kubelet\" \"${KUBE_BIN}\"\n mv \"${src_dir}/kubectl\" \"${KUBE_BIN}\"\n\n # Some older images have LICENSES baked-in as a file. Presumably they will\n # have the directory baked-in eventually.\n rm -rf \"${KUBE_HOME}\"/LICENSES\n mv \"${KUBE_HOME}/kubernetes/LICENSES\" \"${KUBE_HOME}\"\n mv \"${KUBE_HOME}/kubernetes/kubernetes-src.tar.gz\" \"${KUBE_HOME}\"\n\n record-preload-info \"${server_binary_tar}\" \"${server_binary_tar_hash}\"\n fi\n\n if [[ \"${NETWORK_PROVIDER:-}\" == \"kubenet\" ]] || \\\n [[ \"${NETWORK_PROVIDER:-}\" == \"cni\" ]]; then\n install-cni-binaries\n fi\n\n # Put kube-system pods manifests in ${KUBE_HOME}/kube-manifests/.\n install-kube-manifests\n chmod -R 755 \"${KUBE_BIN}\"\n\n # Install gci mounter related artifacts to allow mounting storage volumes in GCI\n install-gci-mounter-tools\n\n # Remount the Flexvolume directory with the \"exec\" option, if needed.\n if [[ \"${REMOUNT_VOLUME_PLUGIN_DIR:-}\" == \"true\" && -n \"${VOLUME_PLUGIN_DIR:-}\" ]]; then\n remount-flexvolume-directory \"${VOLUME_PLUGIN_DIR}\"\n fi\n\n # Install crictl on each node.\n install-crictl\n\n # TODO(awly): include the binary and license in the OS image.\n install-exec-auth-plugin\n\n # Source GKE specific scripts.\n #\n # This must be done after install-kube-manifests where the\n # gke-internal-configure.sh is downloaded.\n if [[ -e \"${KUBE_HOME}/bin/gke-internal-configure.sh\" ]]; then\n echo \"Running GKE internal configuration script gke-internal-configure.sh\"\n . \"${KUBE_HOME}/bin/gke-internal-configure.sh\"\n fi\n\n if [[ \"${KUBERNETES_MASTER:-}\" == \"false\" ]] && \\\n [[ \"${ENABLE_NODE_PROBLEM_DETECTOR:-}\" == \"standalone\" ]]; then\n install-node-problem-detector\n if [[ -e \"${KUBE_HOME}/bin/gke-internal-configure.sh\" ]]; then\n install-npd-custom-plugins\n fi\n fi\n\n # Clean up.\n rm -rf \"${KUBE_HOME}/kubernetes\"\n rm -f \"${KUBE_HOME}/${server_binary_tar}\"\n rm -f \"${KUBE_HOME}/${server_binary_tar}.sha512\"\n}\n\n\nfunction install-extra-node-requirements() {\n if [[ \"${KUBERNETES_MASTER:-}\" != \"false\" ]]; then\n return\n fi\n if [[ -e \"${KUBE_HOME}/bin/gke-internal-configure.sh\" ]]; then\n # M4A is not relevant on ARM\n if [[ \"${HOST_ARCH}\" == \"amd64\" ]]; then\n install-m4a-apparmor-profile\n fi\n fi\n}\n\n# This function detects the platform/arch of the machine where the script runs,\n# and sets the HOST_PLATFORM and HOST_ARCH environment variables accordingly.\n# Callers can specify HOST_PLATFORM_OVERRIDE and HOST_ARCH_OVERRIDE to skip the detection.\n# This function is adapted from the detect_client_info function in cluster/get-kube-binaries.sh\n# and kube::util::host_os, kube::util::host_arch functions in hack/lib/util.sh\n# This function should be synced with detect_host_info in ./configure-helper.sh\nfunction detect_host_info() {\n HOST_PLATFORM=${HOST_PLATFORM_OVERRIDE:-\"$(uname -s)\"}\n case \"${HOST_PLATFORM}\" in\n Linux|linux)\n HOST_PLATFORM=\"linux\"\n ;;\n *)\n echo \"Unknown, unsupported platform: ${HOST_PLATFORM}.\" >&2\n echo \"Supported platform(s): linux.\" >&2\n echo \"Bailing out.\" >&2\n exit 2\n esac\n\n HOST_ARCH=${HOST_ARCH_OVERRIDE:-\"$(uname -m)\"}\n case \"${HOST_ARCH}\" in\n x86_64*|i?86_64*|amd64*)\n HOST_ARCH=\"amd64\"\n ;;\n aHOST_arch64*|aarch64*|arm64*)\n HOST_ARCH=\"arm64\"\n ;;\n *)\n echo \"Unknown, unsupported architecture (${HOST_ARCH}).\" >&2\n echo \"Supported architecture(s): amd64 and arm64.\" >&2\n echo \"Bailing out.\" >&2\n exit 2\n ;;\n esac\n}\n\n# Retries a command forever with a delay between retries.\n# Args:\n# $1 : delay between retries, in seconds.\n# $2... : the command to run.\nfunction retry-forever {\n local -r delay=\"$1\"\n shift 1\n\n until \"$@\"; do\n echo \"== $* failed, retrying after ${delay}s\"\n sleep \"${delay}\"\n done\n}\n\n# Initializes variables used by the log-* functions.\n#\n# get-metadata-value must be defined before calling this function.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-init {\n # Used by log-* functions.\n LOG_CLUSTER_ID=${LOG_CLUSTER_ID:-$(get-metadata-value 'instance/attributes/cluster-uid' 'get-metadata-value-error')}\n LOG_INSTANCE_NAME=$(hostname)\n LOG_BOOT_ID=$(journalctl --list-boots | grep -E '^ *0' | awk '{print $2}')\n declare -Ag LOG_START_TIMES\n declare -ag LOG_TRAP_STACK\n\n LOG_STATUS_STARTED='STARTED'\n LOG_STATUS_COMPLETED='COMPLETED'\n LOG_STATUS_ERROR='ERROR'\n}\n\n# Sets an EXIT trap.\n# Args:\n# $1:... : the trap command.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-trap-push {\n local t=\"${*:1}\"\n LOG_TRAP_STACK+=(\"${t}\")\n # shellcheck disable=2064\n trap \"${t}\" EXIT\n}\n\n# Removes and restores an EXIT trap.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-trap-pop {\n # Remove current trap.\n unset 'LOG_TRAP_STACK[-1]'\n\n # Restore previous trap.\n if [ ${#LOG_TRAP_STACK[@]} -ne 0 ]; then\n local t=\"${LOG_TRAP_STACK[-1]}\"\n # shellcheck disable=2064\n trap \"${t}\" EXIT\n else\n # If no traps in stack, clear.\n trap EXIT\n fi\n}\n\n# Logs the end of a bootstrap step that errored.\n# Args:\n# $1 : bootstrap step name.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-error {\n local bootstep=\"$1\"\n\n log-proto \"${bootstep}\" \"${LOG_STATUS_ERROR}\" \"encountered non-zero exit code\"\n}\n\n# Wraps a command with bootstrap logging.\n# Args:\n# $1 : bootstrap step name.\n# $2... : the command to run.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-wrap {\n local bootstep=\"$1\"\n local command=\"${*:2}\"\n\n log-trap-push \"log-error ${bootstep}\"\n log-proto \"${bootstep}\" \"${LOG_STATUS_STARTED}\"\n $command\n log-proto \"${bootstep}\" \"${LOG_STATUS_COMPLETED}\"\n log-trap-pop\n}\n\n# Logs a bootstrap step start. Prefer log-wrap.\n# Args:\n# $1 : bootstrap step name.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-start {\n local bootstep=\"$1\"\n\n log-trap-push \"log-error ${bootstep}\"\n log-proto \"${bootstep}\" \"${LOG_STATUS_STARTED}\"\n}\n\n# Logs a bootstrap step end. Prefer log-wrap.\n# Args:\n# $1 : bootstrap step name.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-end {\n local bootstep=\"$1\"\n\n log-proto \"${bootstep}\" \"${LOG_STATUS_COMPLETED}\"\n log-trap-pop\n}\n\n# Writes a log proto to stdout.\n# Args:\n# $1: bootstrap step name.\n# $2: status. Either 'STARTED', 'COMPLETED', or 'ERROR'.\n# $3: optional status reason.\n#\n# NOTE: this function is duplicated in configure-helper.sh, any changes here\n# should be duplicated there as well.\nfunction log-proto {\n local bootstep=\"$1\"\n local status=\"$2\"\n local status_reason=\"${3:-}\"\n\n # Get current time.\n local current_time\n current_time=\"$(date --utc '+%s.%N')\"\n # ...formatted as UTC RFC 3339.\n local timestamp\n timestamp=\"$(date --utc --date=\"@${current_time}\" '+%FT%T.%NZ')\"\n\n # Calculate latency.\n local latency='null'\n if [ \"${status}\" == \"${LOG_STATUS_STARTED}\" ]; then\n LOG_START_TIMES[\"${bootstep}\"]=\"${current_time}\"\n else\n local start_time=\"${LOG_START_TIMES[\"${bootstep}\"]}\"\n unset 'LOG_START_TIMES['\"${bootstep}\"']'\n\n # Bash cannot do non-integer math, shell out to awk.\n latency=\"$(echo \"${current_time} ${start_time}\" | awk '{print $1 - $2}')s\"\n\n # The default latency is null which cannot be wrapped as a string so we must\n # do it here instead of the printf.\n latency=\"\\\"${latency}\\\"\"\n fi\n\n printf '[cloud.kubernetes.monitoring.proto.SerialportLog] {\"cluster_hash\":\"%s\",\"vm_instance_name\":\"%s\",\"boot_id\":\"%s\",\"timestamp\":\"%s\",\"bootstrap_status\":{\"step_name\":\"%s\",\"status\":\"%s\",\"status_reason\":\"%s\",\"latency\":%s}}\\n' \\\n \"${LOG_CLUSTER_ID}\" \"${LOG_INSTANCE_NAME}\" \"${LOG_BOOT_ID}\" \"${timestamp}\" \"${bootstep}\" \"${status}\" \"${status_reason}\" \"${latency}\"\n}\n\n######### Main Function ##########\nlog-init\ndetect_host_info\n\n# Preloader will source this script, and skip the main function. The preloader\n# will choose what to preload by calling install-X functions directly.\n# When configure.sh is sourced by the preload script, $0 and $BASH_SOURCE are\n# different. $BASH_SOURCE still contains the path of configure.sh, while $0 is\n# the path of the preload script.\nif [[ \"$0\" != \"$BASH_SOURCE\" && \"${IS_PRELOADER:-\"false\"}\" == \"true\" ]]; then\n echo \"Running in preloader instead of VM bootsrapping. Skipping installation steps as preloader script will source configure.sh and call corresponding functions.\"\n return\nfi\n\nlog-start 'ConfigureMain'\necho \"Start to install kubernetes files\"\n\n# if install fails, message-of-the-day (motd) will warn at login shell\nlog-wrap 'SetBrokenMotd' set-broken-motd\n\nKUBE_HOME=\"/home/kubernetes\"\nKUBE_BIN=\"${KUBE_HOME}/bin\"\n\nif [[ \"$(is-master)\" == \"true\" ]]; then\n log-wrap 'InstallHurl' install-hurl\n log-wrap 'InstallInplace' install-inplace\nfi\n\n# download and source kube-env\nlog-wrap 'DownloadKubeEnv' download-kube-env\nlog-wrap 'SourceKubeEnv' source \"${KUBE_HOME}/kube-env\"\n\nlog-wrap 'DownloadKubeletConfig' download-kubelet-config \"${KUBE_HOME}/kubelet-config.yaml\"\n\nif [[ \"${KUBERNETES_MASTER:-}\" == \"true\" ]]; then\n log-wrap 'DownloadKubeMasterCerts' download-kube-master-certs\nfi\n\n# ensure chosen container runtime is present\nlog-wrap 'EnsureContainerRuntime' ensure-container-runtime\n\n# binaries and kube-system manifests\nlog-wrap 'InstallKubeBinaryConfig' install-kube-binary-config\n\nif [[ \"${ENABLE_GCFS:-\"\"}\" == \"true\" ]]; then\n log-wrap 'InstallRiptide' install-riptide\nfi\n\n# extra node requirements\nlog-wrap 'InstallExtraNodeRequirements' install-extra-node-requirements\n\n# download inplace component manifests\nif [[ \"${KUBERNETES_MASTER:-}\" == \"true\" ]]; then\n log-wrap 'InplaceRunOnce' retry-forever 30 inplace-run-once\nfi\n\necho \"Done for installing kubernetes files\"\nlog-end 'ConfigureMain'\n"
},
{
"key": "disable-legacy-endpoints",
"value": "true"
},
{
"key": "user-data",
"value": "#cloud-config\n\nwrite_files:\n - path: /etc/systemd/system/kube-node-installation.service\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Download and install k8s binaries and configurations\n After=network-online.target\n\n [Service]\n Type=oneshot\n RemainAfterExit=yes\n ExecStartPre=/bin/mkdir -p /home/kubernetes/bin\n ExecStartPre=/bin/mount --bind /home/kubernetes/bin /home/kubernetes/bin\n ExecStartPre=/bin/mount -o remount,exec /home/kubernetes/bin\n ExecStartPre=/usr/bin/curl --fail --retry 5 --retry-delay 3 --silent --show-error -H \"X-Google-Metadata-Request: True\" -o /home/kubernetes/bin/configure.sh http://metadata.google.internal/computeMetadata/v1/instance/attributes/configure-sh\n ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure.sh\n ExecStart=/home/kubernetes/bin/configure.sh\n StandardOutput=journal+console\n\n [Install]\n WantedBy=kubernetes.target\n\n - path: /etc/systemd/system/kube-node-configuration.service\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Configure kubernetes node\n After=kube-node-installation.service\n\n [Service]\n Type=oneshot\n RemainAfterExit=yes\n ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/configure-helper.sh\n ExecStart=/home/kubernetes/bin/configure-helper.sh\n StandardOutput=journal+console\n\n [Install]\n WantedBy=kubernetes.target\n\n - path: /etc/systemd/system/kube-container-runtime-monitor.service\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Kubernetes health monitoring for container runtime\n After=kube-node-configuration.service\n\n [Service]\n Restart=always\n RestartSec=10\n RemainAfterExit=yes\n RemainAfterExit=yes\n ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/health-monitor.sh\n ExecStart=/home/kubernetes/bin/health-monitor.sh container-runtime\n\n [Install]\n WantedBy=kubernetes.target\n\n - path: /etc/systemd/system/kubelet-monitor.service\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Kubernetes health monitoring for kubelet\n After=kube-node-configuration.service\n\n [Service]\n Restart=always\n RestartSec=10\n RemainAfterExit=yes\n RemainAfterExit=yes\n ExecStartPre=/bin/chmod 544 /home/kubernetes/bin/health-monitor.sh\n ExecStart=/home/kubernetes/bin/health-monitor.sh kubelet\n\n [Install]\n WantedBy=kubernetes.target\n\n - path: /etc/systemd/system/kube-logrotate.timer\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Hourly kube-logrotate invocation\n\n [Timer]\n OnCalendar=hourly\n\n [Install]\n WantedBy=kubernetes.target\n\n - path: /etc/systemd/system/kube-logrotate.service\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Kubernetes log rotation\n After=kube-node-configuration.service\n\n [Service]\n Type=oneshot\n ExecStart=-/usr/sbin/logrotate /etc/logrotate.conf\n\n [Install]\n WantedBy=kubernetes.target\n\n - path: /etc/systemd/system/kubernetes.target\n permissions: 0644\n owner: root\n content: |\n [Unit]\n Description=Kubernetes\n\n [Install]\n WantedBy=multi-user.target\n\n - path: /etc/modprobe.d/sunrpc.conf\n permissions: 0644\n owner: root\n # The GKE metadata server uses ports 987-989, so the sunrpc range should be restricted to be below.\n content: |\n options sunrpc max_resvport=986\n\nruncmd:\n - systemctl daemon-reload\n - systemctl enable kube-node-installation.service\n - systemctl enable kube-node-configuration.service\n - systemctl enable kube-container-runtime-monitor.service\n - systemctl enable kubelet-monitor.service\n - systemctl enable kube-logrotate.timer\n - systemctl enable kube-logrotate.service\n - systemctl enable kubernetes.target\n - systemctl start kubernetes.target\n"
},
{
"key": "kube-env",
"value": "ALLOCATE_NODE_CIDRS: \"true\"\nAPI_SERVER_TEST_LOG_LEVEL: --v=3\nAUTOSCALER_ENV_VARS: kube_reserved=cpu=1060m,memory=1019Mi,ephemeral-storage=41Gi;node_labels=cloud.google.com/gke-boot-disk=pd-standard,cloud.google.com/gke-container-runtime=containerd,cloud.google.com/gke-cpu-scaling-level=2,cloud.google.com/gke-max-pods-per-node=110,cloud.google.com/gke-nodepool=default-pool,cloud.google.com/gke-os-distribution=cos,cloud.google.com/machine-family=e2;os=linux;os_distribution=cos;evictionHard=memory.available=100Mi,nodefs.available=10%,nodefs.inodesFree=5%,pid.available=10%\nCA_CERT: LS0tLS1CRUdJT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91fdb42edd760fefa1f455677d552b1d9\nCNI_SHA1: b8ed4cefaac578d29c24de085dfe502ecd98ebb8\nCNI_STORAGE_PATH: https://storage.googleapis.com/gke-release/cni-plugins/v1.0.1-gke.1\nCNI_STORAGE_URL_BASE: https://storage.googleapis.com/gke-release/cni-plugins\nCNI_TAR_PREFIX: cni-plugins-linux-amd64-\nCNI_VERSION: v1.0.1-gke.1\nCONTAINER_RUNTIME: containerd\nCONTAINER_RUNTIME_ENDPOINT: unix:///run/containerd/containerd.sock\nCONTAINER_RUNTIME_NAME: containerd\nCONTAINERD_MAX_CONTAINER_LOG_LINE: \"262144\"\nCREATE_BOOTSTRAP_KUBECONFIG: \"false\"\nDETECT_LOCAL_MODE: NodeCIDR\nDNS_DOMAIN: cluster.local\nDNS_SERVER_IP: 10.100.16.10\nDOCKER_REGISTRY_MIRROR_URL: https://mirror.gcr.io\nELASTICSEARCH_LOGGING_REPLICAS: \"1\"\nENABLE_CLUSTER_DNS: \"true\"\nENABLE_CLUSTER_LOGGING: \"false\"\nENABLE_CLUSTER_MONITORING: none\nENABLE_CLUSTER_REGISTRY: \"false\"\nENABLE_CLUSTER_UI: \"true\"\nENABLE_L7_LOADBALANCING: glbc\nENABLE_LATEST_NPD: \"true\"\nENABLE_METADATA_AGENT: \"\"\nENABLE_METRICS_SERVER: \"true\"\nENABLE_NODE_LOGGING: \"false\"\nENABLE_NODE_PROBLEM_DETECTOR: standalone\nENABLE_NODELOCAL_DNS: \"false\"\nENABLE_SYSCTL_TUNING: \"true\"\nENV_TIMESTAMP: \"2022-02-28T08:00:08+00:00\"\nEXEC_AUTH_PLUGIN_HASH: beb06bc613ac0446b296c20e21d518523ab495efc5a529926474979494bd35be0dbfe7d8d9c3299a120570a7101769710063cb4acac5eda4ee23afaab55dbf1a\nEXEC_AUTH_PLUGIN_LICENSE_URL: https://storage.googleapis.com/gke-prod-binaries/gke-exec-auth-plugin/ca1e685df450fd5d32b57a659eb363b870b03937/LICENSE\nEXEC_AUTH_PLUGIN_SHA1: b42adb3966c4295f17bf3c3f8a2058f4bda684b9\nEXEC_AUTH_PLUGIN_URL: https://storage.googleapis.com/gke-prod-binaries/gke-exec-auth-plugin/ca1e685df450fd5d32b57a659eb363b870b03937/gke-exec-auth-plugin\nEXTRA_DOCKER_OPTS: --insecure-registry 10.0.0.0/8\nEXTRA_POD_SYSCTLS: net.ipv6.conf.all.disable_ipv6=1,net.ipv6.conf.default.disable_ipv6=1\nFEATURE_GATES: DynamicKubeletConfig=false,InTreePluginAWSUnregister=true,InTreePluginAzureDiskUnregister=true,InTreePluginOpenStackUnregister=true,InTreePluginvSphereUnregister=true,RotateKubeletServerCertificate=true,ExecProbeTimeout=false,CSIMigrationGCE=true\nFLUENTD_CONTAINER_RUNTIME_SERVICE: containerd\nHEAPSTER_USE_NEW_STACKDRIVER_RESOURCES: \"true\"\nHEAPSTER_USE_OLD_STACKDRIVER_RESOURCES: \"false\"\nHPA_USE_REST_CLIENTS: \"true\"\nINSTANCE_PREFIX: gke-cluster-13-964a6661\nKUBE_ADDON_REGISTRY: k8s.gcr.io\nKUBE_CLUSTER_DNS: 10.100.16.10\nKUBE_DOCKER_REGISTRY: gke.gcr.io\nKUBE_MANIFESTS_TAR_HASH: 59c746a403eed346796c1fb7f0bf268bbcddfb30529a50b7ba4688b85f03c9d51f3ab1c27124d59b57c0afbaed610bb06aea27b1f1b3dce502239c5842983c1e\nKUBE_MANIFESTS_TAR_URL: https://storage.googleapis.com/gke-release/kubernetes/release/v1.22.8-gke.202/kubernetes-manifests.tar.gz,https://storage.googleapis.com/gke-release-eu/kubernetes/release/v1.22.8-gke.202/kubernetes-manifests.tar.gz,https://storage.googleapis.com/gke-release-asia/kubernetes/release/v1.22.8-gke.202/kubernetes-manifests.tar.gz\nKUBE_PROXY_TOKEN: 2PYRWHOLL6kvRnaZdSdS0ddWrRk-cDiQGCPN7q-hObI=\nKUBELET_ARGS: --v=2 --experimental-check-node-capabilities-before-mount=true --cloud-provider=gce\n --experimental-mounter-path=/home/kubernetes/containerized_mounter/mounter --cert-dir=/var/lib/kubelet/pki/\n --kubeconfig=/var/lib/kubelet/kubeconfig --cni-bin-dir=/home/kubernetes/bin --image-pull-progress-deadline=5m\n --max-pods=110 --non-masquerade-cidr=0.0.0.0/0 --network-plugin=kubenet --volume-plugin-dir=/home/kubernetes/flexvolume\n --node-status-max-images=25 --container-runtime=remote --container-runtime-endpoint=unix:///run/containerd/containerd.sock\n --runtime-cgroups=/system.slice/containerd.service --registry-qps=10 --registry-burst=20\nKUBERNETES_MASTER: \"false\"\nKUBERNETES_MASTER_NAME: 34.69.111.78\nLOAD_IMAGE_COMMAND: ctr -n=k8s.io images import\nLOGGING_DESTINATION: \"\"\nLOGGING_STACKDRIVER_RESOURCE_TYPES: \"\"\nMONITORING_FLAG_SET: \"true\"\nNETWORK_PROVIDER: kubenet\nNODE_LOCAL_SSDS_EXT: \"\"\nNON_MASQUERADE_CIDR: 0.0.0.0/0\nREMOUNT_VOLUME_PLUGIN_DIR: \"true\"\nREQUIRE_METADATA_KUBELET_CONFIG_FILE: \"true\"\nSALT_TAR_HASH: \"\"\nSALT_TAR_URL: https://storage.googleapis.com/gke-release/kubernetes/release/v1.22.8-gke.202/kubernetes-salt.tar.gz,https://storage.googleapis.com/gke-release-eu/kubernetes/release/v1.22.8-gke.202/kubernetes-salt.tar.gz,https://storage.googleapis.com/gke-release-asia/kubernetes/release/v1.22.8-gke.202/kubernetes-salt.tar.gz\nSERVER_BINARY_TAR_HASH: ce07992c07a3bb08f1a6fe74a24a1864cb1c8b91707e3c2ab3fef6b60c12b0ba1cb0cba2a61a2f70aa8df657b6be3e45f4a09bedca4a91b35db5b0ff37e65374\nSERVER_BINARY_TAR_URL: https://storage.googleapis.com/gke-release/kubernetes/release/v1.22.8-gke.202/kubernetes-server-linux-amd64.tar.gz,https://storage.googleapis.com/gke-release-eu/kubernetes/release/v1.22.8-gke.202/kubernetes-server-linux-amd64.tar.gz,https://storage.googleapis.com/gke-release-asia/kubern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n"
},
{
"key": "cluster-uid",
"value": "964a6661331e416daead205d7e182669ed05b8d36cef4f05a2234b5966808f18"
},
{
"key": "cluster-location",
"value": "us-central1-c"
}
]
},
"serviceAccounts": [
{
"email": "334836214757-compute@developer.gserviceaccount.com",
"scopes": [
"https://www.googleapis.com/auth/devstorage.read_only",
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/servicecontrol",
"https://www.googleapis.com/auth/service.management.readonly",
"https://www.googleapis.com/auth/trace.append"
]
}
],
"selfLink": "https://www.googleapis.com/compute/v1/projects/complete-verve-307313/zones/us-central1-c/instances/gke-cluster-13-default-pool-6104c626-2a8a",
"scheduling": {
"onHostMaintenance": "MIGRATE",
"automaticRestart": true,
"preemptible": false,
"provisioningModel": "STANDARD"
},
"cpuPlatform": "AMD Rome",
"labels": {
"goog-gke-node": ""
},
"labelFingerprint": "2ixRno2sGuM=",
"startRestricted": false,
"deletionProtection": false,
"shieldedInstanceConfig": {
"enableSecureBoot": false,
"enableVtpm": true,
"enableIntegrityMonitoring": true
},
"shieldedInstanceIntegrityPolicy": {
"updateAutoLearnPolicy": true
},
"fingerprint": "DdVN5B4lmnc=",
"lastStartTimestamp": "2022-07-03T21:36:09.128-07:00",
"networkPerformanceConfig": {
"totalEgressBandwidthTier": "DEFAULT"
}
}