Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

On k8s-shell I added some aliases to minimize the typing

aliascommand
kkubectl
kakubectl apply
kgkubectl get

kd

kubectl delete

Nodes (no)

Time to see how many nodes we have. How do we get the list of the nodes

...

Code Block
languagebash
titleshow namespaces
collapsetrue
> kubectl get namespace kooper -o yaml
apiVersion: v1
kind: Namespace
metadata:
  annotations:
    cattle.io/status: '{"Conditions":[{"Type":"ResourceQuotaInit","Status":"True","Message":"","LastUpdateTime":"2023-06-25T13:35:36Z"},{"Type":"InitialRolesPopulated","Status":"True","Message":"","LastUpdateTime":"2023-06-25T13:35:36Z"}]}'
    lifecycle.cattle.io/create.namespace-auth: "true"
  creationTimestamp: "2023-06-25T13:35:35Z"
  finalizers:
  - controller.cattle.io/namespace-auth
  labels:
    kubernetes.io/metadata.name: kooper
  name: kooper
  resourceVersion: "296036"
  uid: 6c4092ca-4024-4814-a2c0-5739777ea3aa
spec:
  finalizers:
  - kubernetes
status:
  phase: Active

Lets simplify this, and remove some cruft

Code Block
languageyml
titleshow namespaces
collapsetrue
apiVersion: v1
kind: Namespace
metadata:
  name: kooper

Lets make our life easier, and use this namespace by default

...