Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
automatizace:kubernetes [2022/02/18 16:41]
tomas [network policiesl]
automatizace:kubernetes [2022/02/18 16:45]
tomas [Kubectl]
Line 70: Line 70:
 kubectl get service azure-vote-front --watch ... Sledovani ap\\ kubectl get service azure-vote-front --watch ... Sledovani ap\\
  
 +==Ubuntu container for debugging==
 <code>cat <<EOF | kubectl apply -f - <code>cat <<EOF | kubectl apply -f -
 apiVersion: v1 apiVersion: v1
Line 89: Line 90:
 kubectl exec -it ubuntu %%--%% /bin/bash ... stahne a spusti ubuntu a na nem bash\\ kubectl exec -it ubuntu %%--%% /bin/bash ... stahne a spusti ubuntu a na nem bash\\
  
-===network policiesl=== +==network policies== 
-kubectl get networkpolicy -n namespace +kubectl get networkpolicy -n namespace ... seznam sitovych pravidel (firewall)\\ 
-kubectl delete networkpolicy default-deny-all -n namespace+kubectl describe networkpolicy Policy1 -n namespace ... popis sitovych pravidel\\ 
 +kubectl edit netpol access-nginx -n default ... editace sitovych pravidel\\ 
 +KUBE_EDITOR='vim' kubectl edit netpol access-nginx -n default -o json ... editace policy v VI ve formatu JSON\\ 
 +kubectl delete networkpolicy default-deny-all -n namespace ... smazani sitoveho pravidla\\