Tag: kubernetes
ubuntu – Resolving WARNING about deprecated version information in kubectl (x86-64)
WARNING: This version information is deprecated and will be replaced with the output from kubectl version –short. Use –output=yaml|json to get the full version. Client Version: version.Info{Major:”1″, Minor:”27″, GitVersion:”v1.27.2″, GitCommit:”7f6f68fdabc4df88cfea2dcf9a19b2b830f1e647″, GitTreeState:”clean”,…
kubernetes go client – How to use goclient to fetch kubectl top node command result
I went through below docs RunTopNode- github.com/kubernetes/kubectl/blob/5e6630dc373829ea33efc3c22a326f1b69de96ee/pkg/cmd/cmd.go#L377 github.com/kubernetes/kubectl/blob/77a7b65409fc364fa3ff37060cc9342dc0527292/pkg/cmd/top/top_node.go#L146 NodeMetrics – github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/metrics/pkg/apis/metrics/v1beta1/types.go Not pretty sure how to properly use a goclient to fetch kubectl top nodes results. What I tried //…
kubernetes – How to run kubectl commands inside docker container cron job
1.kubectl commands giving response in container terminal and getting cluster-info. [root@cronjob-cj-m1dr3tsda-aw5rv /]# kubectl cluster-info Kubernetes control plane is running at 172.20.0.1:443 CoreDNS is running at 172.20.0.1:443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy 2.We have crontab running…
kubernetes – kubectl exec with curl Connection refused
i cannot execute successfully a curl command inside a running pod $ kubectl exec -t pulsar-pulsar-manager-79c6769595-xd596 — bash -c “CSRF_TOKEN=$(curl -v localhost:7750/pulsar-manager/csrf-token)” connect to ::1 port 7750 failed: Connection refused…
kubernetes – Why am I seeing this ‘failed to download’ helm error when trying to upgrade a helm chart?
I am running a new relic chart in helm (from this repo -> github.com/newrelic/helm-charts/blob/master/charts/newrelic-logging, this is my output when running in my cluster: helm list -A -n kube-system NAME NAMESPACE.…
Check Kubectl Version With Code Examples
Check Kubectl Version With Code Examples In this lesson, we’ll use programming to try to solve the Check Kubectl Version puzzle. The code shown below demonstrates this. curl -LO storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl…
kubernetes – Elasticsearch own logs are not showing up in kibana
I am running a elasticsearch, Kibana, Filebeat in a GCP OKE Cluster using helm chart( from elsticsearch official site) github.com/elastic/helm-charts All are up and running fine. even I am able…
azure aks – Run Kubectl command on AKS
First of all you need to install azure cli & kubectl on your system. Install Azure Cli learn.microsoft.com/en-us/cli/azure/install-azure-cli Install Kubectl kubernetes.io/docs/tasks/tools/ As far kubectl is installed, verify its version kubectl…
kubernetes – Kubectl client and server version mismatch
I have installed kubectl cli and minikube v1.21.0 version. Below is how it looks: minikube version minikube version: v1.21.0 commit: 76d74191d82c47883dc7e1319ef7cebd3e00ee11 kubectl version Client Version: version.Info{Major:”1″, Minor:”21″, GitVersion:”v1.21.0″, GitCommit:”cb303e613a121a29364f75cc67d3d580833a7479″, GitTreeState:”clean”,…