Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

30
gcloud-container Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# gcloud container
> Manage containerized applications on Kubernetes and clusters.
> See also: `gcloud`.
> More information: <https://cloud.google.com/sdk/gcloud/reference/container>.
- Register `gcloud` as a Docker credential helper:
`gcloud auth configure-docker`
- Create a cluster to run GKE containers:
`gcloud container clusters create {{cluster_name}}`
- List clusters for running GKE containers:
`gcloud container clusters list`
- Update kubeconfig to get `kubectl` to use a GKE cluster:
`gcloud container clusters get-credentials {{cluster_name}}`
- List tag and digest metadata for a container image:
`gcloud container images list-tags {{image}}`