K8s

From Chorke Wiki
Jump to navigation Jump to search

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  deployment -n argocd
kubectl get  configmap  -n argocd
kubectl get  service    -n argocd
kubectl get  secret     -n argocd
kubectl get  event      -n argocd
kubectl get  pod        -n argocd
kubectl edit deployment -n argocd argocd-redis
kubectl edit configmap  -n argocd argocd-rbac-cm
kubectl edit configmap  -n argocd argocd-cm
kubectl edit service    -n argocd argocd-redis
kubectl edit secret     -n argocd argocd-secret
kubectl edit pod        -n argocd argocd argocd-app-ctrl-0
kubectl get deployment -n argocd argocd-redis      -o yaml
kubectl get configmap  -n argocd argocd-rbac-cm    -o yaml
kubectl get configmap  -n argocd argocd-cm         -o yaml
kubectl get service    -n argocd argocd-redis      -o yaml
kubectl get secret     -n argocd argocd-secret     -o yaml
kubectl get pod        -n argocd argocd-app-ctrl-0 -o yaml

Knowledge

snap services maas
snap services juju
snap services lxd

References