You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ kubectl get ns
NAME STATUS AGE
cim-local Active 95m
default Active 97m
ingress-nginx Active 96m
kube-node-lease Active 97m
kube-public Active 97m
kube-system Active 97m
local-path-storage Active 97m
metrics Active 95m
Use -n $NS or --namespace $NS to access a namespaced resource:
A ConfigMap is an API object used to store non-confidential data in key-value pairs.
Pods can consume ConfigMaps as environment variables, command-line arguments, or as configuration files in a volume.
For example, a file that needs to be injected into a pod/container can first be created as a configmap, then volume-mounted into a pod/container.
Kubernetes Secrets let you store and manage sensitive information, such as passwords, OAuth tokens, and ssh keys.
Storing confidential information in a Secret is safer and more flexible than putting it verbatim in a Pod definition or in a container image.
ingress
Ingress manages incoming traffic at the boundary of your cluster. From the docs:
An API object that manages external access to the services in a cluster, typically HTTP.
Ingress may provide load balancing, SSL termination and name-based virtual hosting.
Ingress objects typically cooperate with an ingress controller, of which nginx is a commonly used example.
Since pods are ephemeral (i.e. a pod can crash or be rescheduled to a different node),
deployments act to ensure that the desired state is maintained regardless of disruptions. For example, if a pod crashes,
the deployment will bring up a new one.
$ kubectl get deployments -A
API Version
The API version of resources can change with kube server version as the resources mature.
For example, ingress started out in extensions/v1beta1,
moved on to networking.k8s.io/v1beta1, and with kube 1.19 is now in networking.k8s.io/v1.
Verbs
Verbs that work with resources include create, get, patch, edit, and delete (CRUD):