Category : kubernetes-pod

I have this pod definition: apiVersion: v1 kind: Pod spec: securityContext: runAsUser: 1000 runAsGroup: 1000 fsGroup: 998 # Group ID of docker group on the node containers: – name: someconainter image: someimage resources: requests: memory: "8G" cpu: "6" limits: memory: "10G" cpu: "8" imagePullPolicy: Always tty: true command: – cat volumeMounts: – mountPath: /var/run name: ..

Read more

I walked through the code in a 3 node K8 cluster and doesn’t seem like I am able to block the flow of traffic using networkpolicy on a deployment pod. Here is the the output from the exercise. [email protected]:~$ kubectl get deployment,svc,networkpolicy NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/kubernetes ClusterIP X.X.X.X <none> 443/TCP 20d [email protected]:~$ ..

Read more

I am deploying new deployment after changes in kubernetes service. But I am facing strange issue. When I delete deployment, it deleted fine but its replica sets and pods not deleted. Therefor after apply that deployment again, new replica sets and pods created. But that newly created pods throws "FailedScheduling" error with message "0/1 nodes ..

Read more

I am new to kubernetes. I want to get container metrics from all the nodes present in kubernetes cluster. I have deployed cAdvisor as daemonset on the cluster. Below is the yaml file. cAdvisor daemonset yaml file for kubernetes: apiVersion: apps/v1 # for versions before 1.8.0 use extensions/v1beta1 [apps/v1beta2] kind: DaemonSet metadata: name: cadvisor namespace: ..

Read more

I am new to kubernetes. I want to get container metrics from all the cAdvisor pods present in kubernetes cluster. I have deployed cAdvisor as daemonset on the cluster. Below is the yaml file. cAdvisor daemonset yaml file for kubernetes: apiVersion: apps/v1 # for versions before 1.8.0 use extensions/v1beta1 [apps/v1beta2] kind: DaemonSet metadata: name: cadvisor ..

Read more