k8
https://github.com/wardviaene/advanced-kubernetes-course/blob/master/authorization/role.yml
fluentd - log forwarding
elastic search - log indexing
kibana - log visualisation
Logtrail - easy to use kibana to show logs
mount efs and ebs in kubernetes using storageClass
stateful set needed- when static hostname
some volume attached to sts efs or ebs
list all resources in kubernetes:
kubectl get all -n glp2-int
Persistent volumes and PVC:
PV is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes
PVC
kubectl get storage class
for i in `kubectl get node | cut -d ' ' - f 1 | grep -i internal`; do kubectl label nodes ${i} NAME; done
Create everythin on the current directory:
kubectl create -f .
kubectl get role -n namespace
kubectl get roleBinding -n namespace
kubectl get ClusterRole
kubectl get clusterRole binding
JOBS:
3 kinds:
1- parallel
2- non parallel with fixed completion count
3- non parallel with work queue
CRONJOBS:
kubectl get pods --field-selector=status.phase!=Running
fluentd - log forwarding
elastic search - log indexing
kibana - log visualisation
Logtrail - easy to use kibana to show logs
mount efs and ebs in kubernetes using storageClass
stateful set needed- when static hostname
some volume attached to sts efs or ebs
list all resources in kubernetes:
kubectl get all -n glp2-int
Persistent volumes and PVC:
PV is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes
PVC
kubectl get storage class
for i in `kubectl get node | cut -d ' ' - f 1 | grep -i internal`; do kubectl label nodes ${i} NAME; done
Create everythin on the current directory:
kubectl create -f .
kubectl get role -n namespace
kubectl get roleBinding -n namespace
kubectl get ClusterRole
kubectl get clusterRole binding
JOBS:
3 kinds:
1- parallel
2- non parallel with fixed completion count
3- non parallel with work queue
CRONJOBS:
kubectl get pods --field-selector=status.phase!=Running
Comments
Post a Comment