Google Cloud CLI: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== References == {| | valign="top" | * [https://cloud.google.com/sdk/docs/install GCloud » Install] * [https://cloud.google.com/cli GCloud] | valign="top" | | valign="top" | |- | colspan="3" | ---- |- | valign="top" | * [https://serverfault.com/questions/283129/ SSH » Connection Hang Forever] * Docker Compose * Linux Containers * Kubernetes * Terraform * Remmina * OpenVPN * X11VNC * Podman * XRDP | valign="top" | * Vagrant *...") |
No edit summary |
||
(24 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<syntaxhighlight lang="bash"> | |||
cat <<-'EXE'|sudo bash | |||
apt-get update;echo;apt list -a --upgradable | |||
apt-get install -y apt-transport-https ca-certificates gnupg curl | |||
EXE | |||
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg \ | |||
| sudo tee /etc/apt/keyrings/google-cloud-sdk.asc >/dev/null | |||
cat << SRC | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list >/dev/null | |||
deb [arch=$(dpkg --print-architecture) \ | |||
signed-by=/etc/apt/keyrings/google-cloud-sdk.asc] \ | |||
https://packages.cloud.google.com/apt cloud-sdk main | |||
SRC | |||
cat <<-'EXE'|sudo bash | |||
apt-get update;echo;apt list -a --upgradable | |||
apt-get install -y google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin | |||
EXE | |||
</syntaxhighlight> | |||
==Kontena Lens== | |||
gcloud init | |||
gcloud container clusters get-credentials '''<cluster-name>''' --zone asia-southeast1 --project '''<project-name>''' | |||
gcloud container clusters describe '''<cluster-name>''' --zone asia-southeast1 --format='value(endpoint)' | |||
Lens » Catalog » '''gke_<project-name>_asia-southeast1_<cluster-name>''' | |||
==Playground== | |||
{| | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
gcloud cheat-sheet | |||
gcloud --help | |||
</syntaxhighlight> | |||
| valign="top"| | |||
<syntaxhighlight lang="bash"> | |||
gcloud init --console-only | |||
gcloud init | |||
</syntaxhighlight> | |||
| valign="top"| | |||
<syntaxhighlight lang="bash"> | |||
gcloud auth login --no-browser | |||
gcloud auth login | |||
</syntaxhighlight> | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" colspan="3" | | |||
gcloud container clusters get-credentials '''<cluster-name>''' --region asia-southeast1 --project '''<project-name>''' | |||
gcloud container clusters describe '''<cluster-name>''' --region asia-southeast1 --format='value(endpoint)' | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" colspan="3" | | |||
gcloud container clusters get-credentials '''<cluster-name>''' --zone asia-southeast1 --project '''<project-name>''' | |||
gcloud container clusters describe '''<cluster-name>''' --zone asia-southeast1 --format='value(endpoint)' | |||
|- | |||
| colspan="3" | | |||
---- | |||
|- | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
gcloud auth login --no-launch-browser | |||
ls -lah ~/.config/gcloud/ | |||
gcloud config list | |||
gcloud config -h | |||
gcloud auth list | |||
gcloud auth -h | |||
</syntaxhighlight> | |||
| valign="top" | | |||
<syntaxhighlight lang="bash"> | |||
gcloud auth login -h | |||
gcloud init -h | |||
gcloud info | |||
gcloud -h | |||
</syntaxhighlight> | |||
| valign="top" | | |||
|} | |||
== References == | == References == | ||
{| | {| | ||
| valign="top" | | | valign="top" | | ||
* [https://cloud.google.com/container-registry/pricing GCloud » GKE » Registry » Container » Pricing] | |||
* [https://cloud.google.com/binary-authorization/pricing GCloud » GKE » Binary Authorization » Pricing] | |||
* [https://cloud.google.com/artifact-registry/pricing GCloud » GKE » Registry » Artifact » Pricing] | |||
* [https://github.com/lensapp/lens/issues/5900 GCloud » GKE » Config Lens] | |||
* [https://cloud.google.com/binary-authorization/docs/getting-started-cli GCloud » GKE » Get started] | |||
* [https://cloud.google.com/kubernetes-engine/pricing GCloud » GKE » Pricing] | |||
* [https://cloud.google.com/sdk/docs/components#additional_components GCloud » Components] | |||
* [https://cloud.google.com/sdk/docs/initializing GCloud » Initializing] | |||
* [https://cloud.google.com/sdk/docs/authorizing GCloud » Authorize] | |||
* [https://cloud.google.com/sdk/docs/install GCloud » Install] | * [https://cloud.google.com/sdk/docs/install GCloud » Install] | ||
* [https://cloud.google.com/cli GCloud] | * [https://cloud.google.com/cli GCloud] | ||
Line 26: | Line 124: | ||
| valign="top" | | | valign="top" | | ||
* [[Minikube]] | |||
* [[Vagrant]] | * [[Vagrant]] | ||
* [[Kubectl]] | |||
* [[Ansible]] | * [[Ansible]] | ||
* [[Base64]] | * [[Base64]] | ||
Line 33: | Line 133: | ||
* [[Jasypt]] | * [[Jasypt]] | ||
* [[CURL]] | * [[CURL]] | ||
* [[K8s]] | |||
| valign="top" | | | valign="top" | | ||
* [[AWS CLI]] | |||
* [[CLI App]] | |||
* [[K9s]] | |||
|} | |} |
Latest revision as of 00:16, 24 July 2024
cat <<-'EXE'|sudo bash
apt-get update;echo;apt list -a --upgradable
apt-get install -y apt-transport-https ca-certificates gnupg curl
EXE
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| sudo tee /etc/apt/keyrings/google-cloud-sdk.asc >/dev/null
cat << SRC | sudo tee /etc/apt/sources.list.d/google-cloud-sdk.list >/dev/null
deb [arch=$(dpkg --print-architecture) \
signed-by=/etc/apt/keyrings/google-cloud-sdk.asc] \
https://packages.cloud.google.com/apt cloud-sdk main
SRC
cat <<-'EXE'|sudo bash
apt-get update;echo;apt list -a --upgradable
apt-get install -y google-cloud-cli google-cloud-cli-gke-gcloud-auth-plugin
EXE
Kontena Lens
gcloud init gcloud container clusters get-credentials <cluster-name> --zone asia-southeast1 --project <project-name> gcloud container clusters describe <cluster-name> --zone asia-southeast1 --format='value(endpoint)' Lens » Catalog » gke_<project-name>_asia-southeast1_<cluster-name>
Playground
gcloud cheat-sheet
gcloud --help
|
gcloud init --console-only
gcloud init
|
gcloud auth login --no-browser
gcloud auth login
|
| ||
gcloud container clusters get-credentials <cluster-name> --region asia-southeast1 --project <project-name> gcloud container clusters describe <cluster-name> --region asia-southeast1 --format='value(endpoint)' | ||
| ||
gcloud container clusters get-credentials <cluster-name> --zone asia-southeast1 --project <project-name> gcloud container clusters describe <cluster-name> --zone asia-southeast1 --format='value(endpoint)' | ||
| ||
gcloud auth login --no-launch-browser
ls -lah ~/.config/gcloud/
gcloud config list
gcloud config -h
gcloud auth list
gcloud auth -h
|
gcloud auth login -h
gcloud init -h
gcloud info
gcloud -h
|
References
| ||