logo
down
shadow

KUBERNETES QUESTIONS

How to expose Microk8s containers, so they are available from another machine?
How to expose Microk8s containers, so they are available from another machine?
Hope this helps You are right, if you want to connect to your cluster from outside, you have to expose service as LoadBalancer or NodePort.Unfortunately, as you are not using any cloud provider which support LoadBalancer (like AWS or GCP which provid
TAG : kubernetes
Date : January 11 2021, 03:28 PM , By : Eric
How to deploy a ConfigMap using kubernetes client Api
How to deploy a ConfigMap using kubernetes client Api
hop of those help? I assume you are using the Java client.The object.properties indentation appears when you create a configmap from a file. Example: kubectl create configmap myapp-config --from-file=object.properties.
TAG : kubernetes
Date : January 11 2021, 03:26 PM , By : todor
When base64 encoding should be used with deploying using helm
When base64 encoding should be used with deploying using helm
this will help In most cases, you will see them used when creating Secret objects. This is because secrets use base64 encoding by default.You can have a look at a secret in ChartMuseum's stable helm chart to verify.
TAG : kubernetes
Date : January 11 2021, 11:39 AM , By : Diego
Is it possible to run gcsfuse without privileged mode inside GCP kubernetes?
Is it possible to run gcsfuse without privileged mode inside GCP kubernetes?
Hope this helps Privileged mode means you have all the capabilities enabled, see https://stackoverflow.com/a/36441605. So adding CAP_SYS_ADMIN looks redundant here in your example.You can either give all the privileges or do something more fine-grain
TAG : kubernetes
Date : January 10 2021, 02:04 PM , By : user143038
What does "|-" mean in a kubernetes config file
What does "|-" mean in a kubernetes config file
Hope that helps That is Block Chomping Indicator from yaml spec.Reference : https://yaml.org/spec/1.2/spec.htmlid2794534
TAG : kubernetes
Date : January 09 2021, 02:14 PM , By : ffmmjj
How many pods can be configured per deployment in kubernetes?
How many pods can be configured per deployment in kubernetes?
I hope this helps . 1.) Yes, a Deployment is a ReplicaSet, managed at a higher level.2.) No, a Deployment can not have multiple ReplicaSets, a Deployment pretty much IS a ReplicaSet. Typically you never use a ReplicaSet directly, Deployment is all yo
TAG : kubernetes
Date : January 09 2021, 02:14 PM , By : Techspirit
kubernetes dashboard error : 'Metric client health check failed: the server could not find the requested resource (get s
kubernetes dashboard error : 'Metric client health check failed: the server could not find the requested resource (get s
I hope this helps you . It seems that the serviceaccount kubernetes-dashboard doesn't have access to all kubernetes resources because it was bound to kubernetes-dashboard-minimal role. If you bind the service account to cluster-admin role , you won't
TAG : kubernetes
Date : January 07 2021, 03:08 PM , By : amorican
How to prevent a GCE Kubernetes pod from working on a GPU instance?
How to prevent a GCE Kubernetes pod from working on a GPU instance?
this will help if you want to assign the pod on particular instance or node you can use the kubernetes node selectorfor example :
TAG : kubernetes
Date : January 07 2021, 07:50 AM , By : JackIT
Get average time a pod stays in a pending state
Get average time a pod stays in a pending state
should help you out PromQL provides aggregation functions over time.You specify the range of time in the expression ; for X previous hours, it will be:
TAG : kubernetes
Date : January 06 2021, 03:17 PM , By : Daniel Reslie
Kubernetes Ingress cannot fetch cluster ip of service
Kubernetes Ingress cannot fetch cluster ip of service
hop of those help? I setup a kubernetes single node master plane with calico and haproxy. Now whenever I am going to create an Ingress, the address remains empty and the server returns a 503 error. , The container port of this image was 80 and I expo
TAG : kubernetes
Date : January 06 2021, 03:27 AM , By : stan
How do I get more control over the NodePorts my Service assigns to my Deployment?
How do I get more control over the NodePorts my Service assigns to my Deployment?
will help you You can use a StatefulSet instead of a Deployment:
TAG : kubernetes
Date : January 05 2021, 11:29 AM , By : Lucyberad
Can't create ExternalName type service through command line
Can't create ExternalName type service through command line
help you fix your problem A service of type ExternalName is exactly that: a local DNS CNAME record to an external domain name.Thus exposing a deployment as ExternalName does not make sense. And since it's only a name, it does not have any ports as we
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : nagre
Kubernetes network config
Kubernetes network config
wish help you to fix your issue Kubernetes has its own service discovery and you can use define service for communicate. If you want to communicate or send request to worker2 then you have to define a service for worker2. Suppose you have a worker ad
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Govind Bhavan
How to cp data from one container to another using kubernetes
How to cp data from one container to another using kubernetes
I wish this help you How to run one container and finish a job, before another container starts using kubernetes? Use initContainers - updated your deployment.yml, assuming 913617820371.dkr.ecr.us-west-2.amazonaws.com/nltk_data:latest is your data im
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Christopher
Kubernetes: failure loading apiserver-etcd-client certificate: the certificate has expired
Kubernetes: failure loading apiserver-etcd-client certificate: the certificate has expired
hop of those help? Background: kubectl utilizes a file called config (location in CentOS: /$USER/.kube/config) to identify itself (user which is you) to the api-server. This file is a copy of the admin.conf (location in CentOS: /etc/kubernetes/admin.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Dominique Vocat
Create per-file Kubernetes secrets from a directory of text files in Kustomize
Create per-file Kubernetes secrets from a directory of text files in Kustomize
like below fixes the issue Here is one way you could accomplish this outside of Kustomize.Secrets can be consumed as environment variables in the Pod spec using the valueFrom keyword. Documentation about this is at https://kubernetes.io/docs/concepts
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : BooTeK
Installing kubernetes cluster on master node
Installing kubernetes cluster on master node
Any of those help Related to issueThere are a few fixes shown there , all you need is to change the cgroup driver to systemd
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : PPD
How to add external yml config file into Kubernetes config map
How to add external yml config file into Kubernetes config map
Any of those help There are two possible solutions for your problem.1. Embedd your File directly into the ConfigMap
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Ricardo
Kubernetes Service does not forward to ports other than 80 and 443
Kubernetes Service does not forward to ports other than 80 and 443
To fix the issue you can do LoadBalancer service exposes 1 external IP which external clients or users will use to connect with your app. In most cases, you would expect your LoadBalancer service to listen on port 80 for http traffic and port 443 for
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Sebastián Ucedo
Kubernetes RBAC rules for PersistentVolume
Kubernetes RBAC rules for PersistentVolume
Hope that helps I see a potential problem here. PersistentVolumes are cluster scoped resources. They are expected to be provisioned by the administrator without any namespace.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : pttr
Unable to connect to pod using ingress
Unable to connect to pod using ingress
seems to work fine You need to run a Ingress Controller. The Prerequisites part of https://kubernetes.io/docs/concepts/services-networking/ingress/prerequisites says:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Boris
How to re-deploy (rolling update) kubernetes deployment if the files don't change
How to re-deploy (rolling update) kubernetes deployment if the files don't change
wish of those help I don't expect this to be an accepted answer. But I wanted to make it for the future as there is a command to do this in Kubernetes 1.15.PR https://github.com/kubernetes/kubernetes/pull/76062 added a command called kubectl rollout
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : yatil
How to deploy application to a different cluster within same google cloud project?
How to deploy application to a different cluster within same google cloud project?
this will help I have one google cloud project, but have 2 different kubernetes clusters. Each of these clusters have one node each. , See the cluster with which kubectl is currently communicating:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Laques
How do I modify kube-apiserver parameters when provisioning a cluster using kops?
How do I modify kube-apiserver parameters when provisioning a cluster using kops?
seems to work fine https://stackoverflow.com/a/50356764/1663462Modify /etc/kubernetes/manifests/kube-apiserver.manifest
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Ryuken
Azure Kubernetes NGINX Ingress redirect to www stopped working
Azure Kubernetes NGINX Ingress redirect to www stopped working
hop of those help? This only wasn't working because of the internal network setup where I was working. The configuration above is correct and works.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : rusl
Can I add initContainers to a kubernetes-cronjob?
Can I add initContainers to a kubernetes-cronjob?
around this issue I want to have an initContainer that runs prior to the container my kubernetes cronjob is running. It's used to install kubectl. Is there a way of doing this? , You could install the kubectl into the image you used there.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : thatotherguy
Give EKS service a name (instead of being auto-generated)
Give EKS service a name (instead of being auto-generated)
may help you . When you create a service of type "load balancer", a new load balancer is created by your cloud provider (here aws). Load Balancer naming is of the responsibility of the cloud provider. I don't think you can tell amazon how to generate
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : hammer_1968
what are the Kubernetes modules directly communicating with etcd
what are the Kubernetes modules directly communicating with etcd
I wish did fix the issue. If a kubernete component want to communicate with etcd, it must know the endpoint of etcd. If you check the spec config of these components, you will find the correct answer: only api-server directly talk to etcd.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Ron
Tiller timing out every 30 sec unable to proceed with installation
Tiller timing out every 30 sec unable to proceed with installation
To fix the issue you can do The problem for this timeout happens to be a webhook that was configured by the below app on the cluster. The Google support team confirmed that this webhook was restricting the deployments by inspecting the api server log
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Valentine
What are good practices to connect the dots within Kubernetes?
What are good practices to connect the dots within Kubernetes?
Does that help You should always make these hostnames configurable; via an environment variable is easiest to set in a Docker/Kubernetes world. Consider the scenario you're describing: When you're doing purely local development, you want to connect t
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Nick Coats
kubespray openstack terraform "Error: Module not found" error
kubespray openstack terraform "Error: Module not found" error
may help you . I was getting the same error. I resolved it by downgrading the terraform to Terraform v0.11.13Please try these steps:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Goeran
Update tls secret for Ambassador
Update tls secret for Ambassador
will be helpful for those in need You can configure Ambassador to terminate TLS with either a TLSContext or tls Module resource. To get either to simply terminate TLS using the secret you created, you can configure them liketls Module:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : mdiezb
How to pass configuration flags to nginx-ingress in minikube?
How to pass configuration flags to nginx-ingress in minikube?
I wish this help you I don't think there is an easy way to change it. But you can always manually change the ingress controller deployment object so that it passes the arguments that you need. For example, in this repository someone has the Kubernete
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Vodkat
Weird way of accessing Cloud Run on GKE services
Weird way of accessing Cloud Run on GKE services
With these it helps Most proxies that handle external traffic match requests based on the Host header. They use what's inside the Host header to decide which service send the request to. Without the Host header, they wouldn't know where to send the r
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Habikki
How to autoscale with GKE
How to autoscale with GKE
wish helps you I don't think it's directly related to autoscaling unless some of your old nodes are being removed. The autoscaling is triggered by adding more pods but most likely, there is something with your application or connectivity to external
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : kaart
How to convert k8s yaml to helm chart
How to convert k8s yaml to helm chart
Hope this helps At heart a Helm chart is still just YAML so to make that a chart, just drop that file under templates/ and add a Chart.yml.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : user94076
How to remove kube taints from worker nodes: Taints node.kubernetes.io/unreachable:NoSchedule
How to remove kube taints from worker nodes: Taints node.kubernetes.io/unreachable:NoSchedule
To fix this issue Problem was that swap was turned on the worker nodes and thus kublet crashed exited. This was evident from syslog file under /var, thus the taint will get re-added until this is resolved. Perhaps someone can comment on the implicati
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : user158220
How to fix k8s namespace permissions in gitlab ci
How to fix k8s namespace permissions in gitlab ci
should help you out In my case I had to delete the namespace in Gitlab database, so gitlab would readd service account and namespace:On the gitlab machine or task runner enter the PostgreSQL console:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Thaweesak Suksuwan
How pods are able to mount the same pvc with ReadWriteOnce access mode when storageClass is with glusterfs but not with
How pods are able to mount the same pvc with ReadWriteOnce access mode when storageClass is with glusterfs but not with
around this issue Volumes are RWO per node, not per Pod. Volumes are mounted to the node and then bind mounted to containers. As long as pods are scheduled to the same node, RWO volume can be bind mounted to both containers at the same time.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Vrki
service "kubernetes" deleted - accidentally deleted kubernetes service
service "kubernetes" deleted - accidentally deleted kubernetes service
I wish this helpful for you A bit theory first ;) Whenever you delete kubernetes svc, you also delete endpoint and this is where Reconciler comes in. It is actually a controller manager for the core bootstrap Kubernetes controller loops, which manage
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Theo
Unauthorized response when using service account bearer token
Unauthorized response when using service account bearer token
wish helps you , Bearer token was not base64 decoded... Argh
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : user187383
how to communicate with daemonset pod from another pod in the same node?
how to communicate with daemonset pod from another pod in the same node?
Does that help There is a way of not using a service.You can Expose Pod Information to Containers Through Environment Variables.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Suresh S
One node for a GKE cluster cannot pull image from dockerhub
One node for a GKE cluster cannot pull image from dockerhub
Any of those help There was a related reported bug in Kubernetes 1.11 Make sure it is not your case
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Joe
Is it possible to sort Kubernetes API list of ConfigMaps?
Is it possible to sort Kubernetes API list of ConfigMaps?
To fix this issue As I know, you need to sort it by yourself. k8s-api-cm-refer hasn't sort parameters.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : shenol
Airflow kubernetes executor: Run 2 jobs on the same pod
Airflow kubernetes executor: Run 2 jobs on the same pod
With these it helps Sorry this isn't possible - one job per pod.You are best to use task 1 to put the data in a well known location (e.g in a cloud bucket) and get it from the second task. Or just combine the two tasks.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : user124112
Can I add arbitrary config to a pod spec deployed with a helm chart without modifying the helm chart?
Can I add arbitrary config to a pod spec deployed with a helm chart without modifying the helm chart?
should help you out Is there a way I can add arbitrary config values to a pod spec that was deployed with a helm chart without having to modify the chart?
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Will
Kubernetes secrets plugin not working with no useful logs
Kubernetes secrets plugin not working with no useful logs
I think the issue was by ths following , Ok I found my issue using the environement variable DEBUG in the drone-drone-secrets deployment. The error was :
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Shrek Qian
Traefik load balancing weight not working as per expectation
Traefik load balancing weight not working as per expectation
To fix this issue That seems to be followed by traefik issue 4494 (instead of your own issue 4940)
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : suresh
Kubernetes ingress: Not creating an LB?
Kubernetes ingress: Not creating an LB?
it helps some times This would not create a LB. Ingress is just a routing rule for your ingress controller. Think of it like a location block in your nginx config. A K8S Service with Load Balancer type would create a LB in AWS. You could get more und
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : markku
How to scrape data from istio-envoy containers
How to scrape data from istio-envoy containers
Hope that helps Apart from ServiceMonitor you also need to create following scrape config for envoy proxies
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Verbal
k8s ramped deployment -- css from same pod
k8s ramped deployment -- css from same pod
wish of those help How can I be guaranteed, that all subsequent requests will be served from the same pod, or a pod with the same version that the html served?
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Genipro
Load Balancing between PODS
Load Balancing between PODS
wish help you to fix your issue This is what the Kubernetes Service object does, which you already mentioned you are using. Make sure you set up a readiness probe in your pod template so that the system can tell when your app is healthy.
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : hellboy32
Metacontroller: how to stop calls to sync hooks and resource generation
Metacontroller: how to stop calls to sync hooks and resource generation
I wish this help you You probably need to enable the "status" subresource for your CRD: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/status-subresource
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Matt Leacock
How to safely provide kubeconfig to kubectl
How to safely provide kubeconfig to kubectl
this one helps. So far I have used the following solution: User specifies an empty token in the kubeconfig file
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : mikhaelrasputin
Is kustomize for k8s backward chaining?
Is kustomize for k8s backward chaining?
this one helps. What I noticed so far is that kustomize will first accumulate the content of all the base resources then apply the transformations from your kustomization.yml files. If you have multiple level of overlays, it doesn't seem to pass the
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Bo.
Terminate k8s pods faster
Terminate k8s pods faster
wish help you to fix your issue If you really want to kill them instead of gracefully shutdown, then:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Cosmin
Is it possible to deploy a GUI application using Kubernetes?
Is it possible to deploy a GUI application using Kubernetes?
it should still fix some issue To run GUI application on headless server, you need Xvfb to create a virtual frame buffer as a X-server, and let application connect to the X-server by env DISPLAY.Example yaml use xvfb docker image:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : mlapida
What is the difference between |+ and |- when creating a configmap from a file in kubernetes yaml definitions?
What is the difference between |+ and |- when creating a configmap from a file in kubernetes yaml definitions?
this one helps. This is the block chomping indicator.Directly quoting from the link:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : Shawazi
Live update of Kubernetes container environment variable derived from configMapRef
Live update of Kubernetes container environment variable derived from configMapRef
it helps some times The environment variables are set when the container is starting so there is no possible way to update those environment variables. You will need to restart Pod so it that reads again the ConfigMap values and sets the environment
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : JackIT
How to connect kubectl to a cluster in Google Cloud?
How to connect kubectl to a cluster in Google Cloud?
help you fix your problem The easiest would be to mount your ~/.kube/config into your container. Like:
TAG : kubernetes
Date : January 02 2021, 06:48 AM , By : PeteFilicetti

shadow
Privacy Policy - Terms - Contact Us © scrbit.com