Last Workshop log and stuff

kubectl describe pod -n workshop

kubectl get deployment -n workshop

kubectl get deployment -n workshop broken

kubectl delete deployment -n workshop

kubectl get -n xxxx pod xxxx -o yaml

kubectl get cronjobs -n ak-backend-dev

kubectl get pods -n ak-backend-dev

kubectl logs -n ak-backend-dev provision-market-dev-job-1630383300-pvnrj -c scriptrunner

kubectl get configmaps -n ak-backend-dev

kubectl get secrets -n ak-backend-dev

kubectl get secrets -n ak-backend-dev pod env-dev-hh7577cggk -o yaml

B64

echo x | base64 -d

git secret reveal

git-secret reveal

kustomize build kubernetes/overlays/dev

https://github.com/southpolecarbon/ingress-configuration/wiki/Kubernetes-Essentials

Check

https://github.com/southpolecarbon/ingress-configuration/wiki/Ingresses,-Certificates,-DNS

Services and Ingres and GKE

 

 

 

Docker commands
docker system prune -a

docker images
docker logs alaskaback
docker exec -it alaskaback /bin/sh
docker exec -it alaskaback /bin/bash
/proc/14/fd # tail -f 0 1 2

K8 commands

setup on gke

gcloud init

gcloud container clusters get-credentials alaska

to enter container

kubectl get pods

kubectl exec -it alaska-api-9df9b4594-jchrl — /bin/bash
kubectl exec -it alaska-payments-d54ffd8b9-jjtw4 — /bin/bash
some commands

kubectl apply -f

docker-compose -f prox.yaml up -d

kubectl get service alaska-administration

kubectl get pods

kubectl get services -> see IP external address

kubectl rollout undo deployments alaska-administration

kubectl describe pods

kubectl get ev

kubectl delete pod foo

kubectl describe pod ppa-76dd5b4fbb-l75ld

kubectl scale –current-replicas=2 –replicas=1 deployment/ppa

docker build . -t eu.gcr.io/marketk8/msc

docker push eu.gcr.io/marketk8/msc

kubectl set image deployment/ppa-model pamodel=eu.gcr.io/marketk8/ppa-model

  • gcloud auth login
    gcloud auth configure-docker
kubectl create secret generic <YOUR-SA-SECRET> \
--from-file=service_account.json=~/key.json

kubectl -n msc scale deployment msc --replicas=1


kubectl apply -f cert-volumeclaim.yaml

kubectl create deployment msc –image=eu.gcr.io/marketk8/msc –dry-run -o yaml

kubectl get deployments -n msc msc -o yaml

kubectl get -n msc pvc

kubectl config current-context

kubectl config use-context gke_marketk8_europe-west3-c_alaska
kubectl config use-context gke_marketk8_europe-west3-c_memcalc

 

ss -tulwn

 

https://kubernetes.io/docs/reference/kubectl/cheatsheet/

creat namespace

 


GIT commands

git stash