K8s: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 41: Line 41:
{|
{|
|valign='top'|
|valign='top'|
  kubectl get deployment -n argocd
  kubectl get -n=argocd configmap
  kubectl get configmap  -n argocd
  kubectl get -n=argocd deployment
  kubectl get service    -n argocd
  kubectl get -n=argocd service
  kubectl get secret    -n argocd
  kubectl get -n=argocd secret
  kubectl get event      -n argocd
  kubectl get -n=argocd event
  kubectl get pod        -n argocd
  kubectl get -n=argocd pod


|valign='top'|
|valign='top'|
  kubectl edit deployment -n argocd argocd-redis
  kubectl edit -n=argocd configmap  argocd-rbac-cm
  kubectl edit configmap  -n argocd argocd-rbac-cm
  kubectl edit -n=argocd configmap  argocd-cm
  kubectl edit configmap  -n argocd argocd-cm
  kubectl edit -n=argocd deployment argocd-redis
  kubectl edit service    -n argocd argocd-redis
  kubectl edit -n=argocd service    argocd-redis
  kubectl edit secret    -n argocd argocd-secret
  kubectl edit -n=argocd secret    argocd-secret
  kubectl edit pod        -n argocd argocd argocd-app-ctrl-0
  kubectl edit -n=argocd pod        argocd-app-ctrl-0


|valign='top'|
|valign='top'|
  kubectl get deployment -n argocd argocd-redis      -o yaml
  kubectl get -n=argocd -o=yaml configmap  argocd-rbac-cm
  kubectl get configmap  -n argocd argocd-rbac-cm   -o yaml
  kubectl get -n=argocd -o=yaml configmap  argocd-cm
  kubectl get configmap  -n argocd argocd-cm        -o yaml
  kubectl get -n=argocd -o=yaml deployment argocd-redis
  kubectl get service    -n argocd argocd-redis     -o yaml
  kubectl get -n=argocd -o=yaml service    argocd-redis
  kubectl get secret    -n argocd argocd-secret    -o yaml
  kubectl get -n=argocd -o=yaml secret    argocd-secret
  kubectl get pod        -n argocd argocd-app-ctrl-0 -o yaml
  kubectl get -n=argocd -o=yaml pod        argocd-app-ctrl-0


|}
|}

Revision as of 19:42, 24 May 2023

Kind

  • Pod
  • PersistentVolume
  • PersistentVolumeClaim
  • Deployment
  • DeploymentConfig
  • ReplicaSet
  • ReplicationController
  • StorageClass

Volume

Argo CD

kubectl create namespace argocd
kubectl get namespace -A

kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml

kubectl get pod -n argocd
kubectl get service -n argocd
kubectl port-forward -n argocd service/argocd-server 8080:80

kubectl get -n=argocd configmap
kubectl get -n=argocd deployment
kubectl get -n=argocd service
kubectl get -n=argocd secret
kubectl get -n=argocd event
kubectl get -n=argocd pod
kubectl edit -n=argocd configmap  argocd-rbac-cm
kubectl edit -n=argocd configmap  argocd-cm
kubectl edit -n=argocd deployment argocd-redis
kubectl edit -n=argocd service    argocd-redis
kubectl edit -n=argocd secret     argocd-secret
kubectl edit -n=argocd pod        argocd-app-ctrl-0
kubectl get -n=argocd -o=yaml configmap  argocd-rbac-cm
kubectl get -n=argocd -o=yaml configmap  argocd-cm
kubectl get -n=argocd -o=yaml deployment argocd-redis
kubectl get -n=argocd -o=yaml service    argocd-redis
kubectl get -n=argocd -o=yaml secret     argocd-secret
kubectl get -n=argocd -o=yaml pod        argocd-app-ctrl-0

Knowledge

snap services maas
snap services juju
snap services lxd

References