What’s the meaning of “READY=2/2” output by command “kubectl get pod $yourpod”

it shows how many containers in a pod are considered ready. You can have some containers starting faster then others or having their readiness checks not yet fulfilled (or still in initial delay). In such cases there will be less containers ready in pod then their total number (ie. 1/2) hence the whole pod will … Read more

How to Add Users to Kubernetes (kubectl)?

For a full overview on Authentication, refer to the official Kubernetes docs on Authentication and Authorization For users, ideally you use an Identity provider for Kubernetes (OpenID Connect). If you are on GKE / ACS you integrate with respective Identity and Access Management frameworks If you self-host kubernetes (which is the case when you use … Read more

how to check whether RBAC is enabled, using kubectl

You can check this by executing the command kubectl api-versions; if RBAC is enabled you should see the API version .rbac.authorization.k8s.io/v1. In AKS, the best way is to check the cluster’s resource details at resources.azure.com. If you can spot “enableRBAC”: true, your cluster has RBAC enabled. Please note that existing non-RBAC enabled AKS clusters cannot … Read more

Can a PVC be bound to a specific PV?

There is a way to pre-bind PVs to PVCs today, here is an example showing how: Create a PV object with a ClaimRef field referencing a PVC that you will subsequently create: $ kubectl create -f pv.yaml persistentvolume “pv0003” created where pv.yaml contains: apiVersion: v1 kind: PersistentVolume metadata: name: pv0003 spec: storageClassName: “” capacity: storage: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)