Question
stringlengths
65
39.6k
QuestionAuthor
stringlengths
3
30
Answer
stringlengths
38
29.1k
AnswerAuthor
stringlengths
3
30
<p>I have a problem with a local kind kubernetes cluster I have.</p> <p>I applied a regcred secret with the relevant details of my private registry and then a deployment file pointing to that registry and uses the relevant secret but it seems like the pods aren't able to pull the image. I tested it on a kubernetes clus...
Yaakov Shami
<p>To add an insecure docker registry, add the file C:\ProgramData\docker\config\daemon.json with the following content:</p> <p>{ &quot;insecure-registries&quot; : [ &quot;your.private.registry.host&quot; ] } and then you need to restart docker.</p>
Abhijit Gaikwad
<p>i'm trying to find out how to get <code>preStop</code> execution result for debugging purposes. </p> <p>I'm creating a pod (not part of a deployment) with the following lifecycle definition:</p> <pre><code> terminationGracePeriodSeconds: 60 lifecycle: preStop: exec: command: ...
Lior Baber
<p>You were on the right path with <code>kubectl describe</code>, check out the following location: <code>/dev/termination-log</code> see also the <a href="https://kubernetes.io/docs/tasks/debug-application-cluster/determine-reason-pod-failure/#writing-and-reading-a-termination-message" rel="nofollow noreferrer">docs</...
Michael Hausenblas
<p>Is there a way to configure kube-proxy in GKE?</p> <p>I can see the pods creating from the daemonset, but I cannot see the daemonset itself.</p> <p>Thanks for your help.</p>
matth3o
<p>kube-proxy pod in k8s (not only in GKE) is created as <a href="https://kubernetes.io/docs/tasks/configure-pod-container/static-pod/" rel="nofollow noreferrer">Static Pod</a>.</p> <p>Kubelet automatically creates so-called mirror pod on Kubernetes API server for each static pod, so the pods are visible there, but the...
d.garanzha
<p>At the moment I have the following config in one of my services:</p> <pre><code>spec: clusterIP: None ports: - name: grpc port: 9000 protocol: TCP targetPort: 9000 selector: app: my-first-app environment: production group: my-group type: ClusterIP </code></pre> <p>in the selector se...
Moein
<pre><code>selector: matchExpressions: - {key: app, operator: In, values: [my-first-app, my-second-app]} </code></pre> <p>Reference: <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/" rel="noreferrer">https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/</a></p...
Abhijit Gaikwad
<p>How can I check and/or wait that apiVersion and kind exists before trying to apply resource using those?</p> <p><strong>Example:</strong></p> <p><em>Install cilium and network policy using cilium</em></p> <pre><code>kubectl apply -f cilium.yaml kubectl apply -f policy.yaml # fails if run just after installing cil...
warbaque
<p>You can use the following to check for supported versions and kinds, that is, check what the API server you're talking to supports:</p> <pre><code>$ kubectl api-versions admissionregistration.k8s.io/v1beta1 apiextensions.k8s.io/v1beta1 ... storage.k8s.io/v1 storage.k8s.io/v1beta1 v1 </code></pre> <p>There's also <...
Michael Hausenblas
<p>I currently use the following script to wait for the job completion</p> <p><code>ACTIVE=$(kubectl get jobs my-job -o jsonpath='{.status.active}') until [ -z $ACTIVE ]; do ACTIVE=$(kubectl get jobs my-job -o jsonpath='{.status.active}') ; sleep 30 ; done </code></p> <p>The problem is the job can either fail or be s...
Devendra Bhatte
<p>Yes. As I pointed out in <a href="https://hackernoon.com/kubectl-tip-of-the-day-wait-like-a-boss-40a818c423ac" rel="nofollow noreferrer">kubectl tip of the day: wait like a boss</a>, you can use the <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#wait" rel="nofollow noreferrer">kubec...
Michael Hausenblas
<p>(WSL2, minikube, Windows 11, Calico plugin, Docker-Desktop)</p> <p>I simply don't understand why curl timed out when doing <code>curl http://$(minikube ip):32000</code>. I saw <a href="https://stackoverflow.com/questions/54699742/minikube-has-ip-cant-curl">SO questions</a> but they are not applicable.</p> <pre><code...
likejudo
<p>As @glv pointed <a href="https://minikube.sigs.k8s.io/docs/handbook/accessing/#using-minikube-service-with-tunnel" rel="nofollow noreferrer">out</a>,</p> <blockquote> <p>The network is limited if using the Docker driver on Darwin, Windows, or WSL, and the Node IP is not reachable directly.</p> </blockquote> <p>The s...
likejudo
<p>We're trying to create different kuberentes secrets and offer access to specific secrets through specific service accounts that are assigned to pods. For example:</p> <p>Secrets</p> <pre><code>- User-Service-Secret - Transaction-Service-Secret </code></pre> <p>Service Account</p> <pre><code>- User-Service - Transact...
blee908
<p>First it is important to distinguish between API access to the secret and consuming the secret as an environment variable or a mounted volume.</p> <p>TLDR:</p> <ul> <li>RBAC controls who can access a secret (or any other resource) using K8s API requests.</li> <li>Namespaces or the service account's <code>secrets</co...
pst
<p>I have the following deployment.yaml file in Kuberentes:</p> <pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: basic-deployment spec: replicas: 2 selector: matchLabels: app: nginx template: metadata: labels: app: basic spec: containers: - name: basic ...
coderWorld
<pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: basic-deployment spec: replicas: 2 selector: matchLabels: app: basic template: metadata: labels: app: basic spec: containers: - name: basic image: nginx volumeMounts: - name: confi...
Abhijit Gaikwad
<p>I've tried to reproduce the <a href="https://github.com/kubernetes-client/java/blob/master/examples/src/main/java/io/kubernetes/client/examples/Example.java" rel="nofollow noreferrer">example in k8s-java</a> in my mini-maven project. However, I kept getting into this error - Exception in thread &quot;main&quot; java...
Byron Hsu
<p>run using <code>mvn exec:java -D exec.mainClass=com.mycompany.app.App</code></p>
Abhijit Gaikwad
<p>We are building application with argo workflows. We are wondering if we could just set up opentelemetry collector inside of our kubernetes cluster, and start using it as stdout exporter into elastic stack. Couldn't find information if OTEL can export logs without instrumentation. Any thoughts?</p>
Vsevolod Mitskevich
<p>The short answer is: yes. For logs you don't need instrumentation, in principle.</p> <p>However, logs are still in development (so, you'd need to track upstream and deal with the fact that you're operating against a moving target. There are a number of components upstream you can use, for example, you can use the <a...
Michael Hausenblas
<p>I have a Python process that does some heavy computations with Pandas and such - not my code so I basically don't have much knowledge on this.</p> <p>The situation is this Python code used to run perfectly fine on a server with 8GB of RAM maxing all the resources available.</p> <p>We moved this code to Kubernetes an...
Nicolas Landier
<p>I found out that running something like this seems to work:</p> <pre class="lang-py prettyprint-override"><code>import resource import os if os.path.isfile('/sys/fs/cgroup/memory/memory.limit_in_bytes'): with open('/sys/fs/cgroup/memory/memory.limit_in_bytes') as limit: mem = int(limit.read()) r...
caarlos0
<p>How to check if a pod has access to url something like this.</p> <p>http://hostname:8080.</p> <p>It says connection failed, I went through lot of documentation, unable to figure out how to check the connection.</p> <p>Thanks, Vijay.</p>
Vijay
<p>You should set up egress.</p> <p>For example , following yaml will allow all egress traffic</p> <pre><code>--- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: allow-all-egress spec: podSelector: {} egress: - {} policyTypes: - Egress </code></pre> <p>Reference: <a href="https://kubern...
Abhijit Gaikwad
<p>there is 2 ways to deploy OpenTelemetry collector on Kubernetes <a href="https://opentelemetry.io/docs/collector/deployment/" rel="nofollow noreferrer">https://opentelemetry.io/docs/collector/deployment/</a> Agent and Gateway</p> <p>my question is when deploying OpenTelemetry collector as a deamonset why we still ne...
Idan Reuven
<p>Before I get to the core of your question, note that the agent/gateway modes are not Kubernetes specific. This pattern is equally valid and applicable in case you're running your microservices on, say, virtual machines or ECS.</p> <p>Now, let's dive deeper into why there are cases where it makes sense to use the Ope...
Michael Hausenblas
<p><strong>Is there a way to extend the kustomize image transformer to recognise more keys as image specifiers?</strong> Like the <a href="https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md#name-reference-transformer" rel="nofollow noreferrer"><code>nameReference</code> trans...
Craig Ringer
<p>Just after writing this up I finally stumbled on the answer: Kustomize does support <a href="https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/images/README.md" rel="noreferrer">image transformer configs</a>.</p> <p>The correct way to express the above would be a <code>image_transf...
Craig Ringer
<p>This question is about logging/monitoring.</p> <p>I'm running a 3 node cluster on AKS, with 3 orgs, Dev, Test and Prod. The chart worked fine in Dev, but the same chart keeps getting killed by Kubernetes in Test, and it keeps getting recreated, and re-killed. Is there a way to extract details on why this is happenin...
user8172324
<h1>List Events sorted by timestamp</h1> <p>kubectl get events --sort-by=.metadata.creationTimestamp</p>
Abhijit Gaikwad
<p>I need to watch (and wait) until a POD is deleted. I need to this is because I need to start a second pod (with the same name) immediately after the first one has been deleted.</p> <p>This is what I'm trying:</p> <pre><code>func (k *k8sClient) waitPodDeleted(ctx context.Context, resName string) error { watcher, ...
Alejandro González
<p>As I said in the comments, the real problem was the watcher I was creating to watch the pod I want to get deleted. In the watcher I was creating a LabelSelector that was selecting two pods instead of one. This is the complete solution, including the watcher.</p> <pre><code>func (k *k8sClient) createPodWatcher(ctx co...
Alejandro González
<p>Today my kubernetes 1.15 shows this error:</p> <pre><code>Failed to inspect image &quot;registry.cn-hangzhou.aliyuncs.com/dabai_app_k8s/dabai-fat/soa-illidan-superhub:v1.0.3&quot;: rpc error: code = Unknown desc = Error response from daemon: readlink /var/lib/docker/overlay2: invalid argument Error: ImageInspectErro...
Dolphin
<p>I suggest you to stop the docker engine first, by <code>systemctl stop docker</code> for example, and manually remove the folder using <code>rm -rf /var/lib/docker</code>. then you should start the docker again with <code>systemctl start docker</code>.</p> <p>reference:<a href="https://github.com/docker/for-mac/issu...
Abhijit Gaikwad
<p>Trying to add more kafka connectors to our kafka cluster based on the following link's instructions . But getting failed with <code>errImagepull</code> error . Please find the details and help me resolve this .</p> <p>Reference Link :</p> <p><a href="https://docs.confluent.io/home/connect/extending.html#create-a-doc...
Karthikeyan Rasipalay Durairaj
<p>Image from docker io <a href="https://hub.docker.com/r/confluentinc/cp-server-connect-operator" rel="nofollow noreferrer">https://hub.docker.com/r/confluentinc/cp-server-connect-operator</a> doesn’t have tag 1.0.0 available . Try tag 6.0.0.0 That is confluentinc/cp-server-connect-operator:6.0.0.0</p>
Abhijit Gaikwad
<p>I'm working on an application that deploys kubernetes resources dynamically, and I'd like to be able to provision a shared SSL certificate for all of them. At any given time, all of the services have the path <code>*.*.*.example.com</code>. </p> <p>I've heard that cert-manager will provision/re-provision certs auto...
Jay K.
<p>Have a look at <a href="https://kubernetes.github.io/ingress-nginx/" rel="noreferrer">nginx-ingress</a>, which is a Kubernetes Ingress Controller that essentially makes it possible to run <a href="https://www.nginx.com/" rel="noreferrer">Nginx</a> reverse proxy/web server/load balancer on Kubernetes.</p> <p>nginx-i...
julz256
<p>We're using Spring Boot 3.0.5 with leader election from <a href="https://docs.spring.io/spring-cloud-kubernetes/docs/current/reference/html/#leader-election" rel="nofollow noreferrer">Spring Cloud Kubernetes</a> version 3.0.2 (<code>org.springframework.cloud:spring-cloud-kubernetes-fabric8-leader:3.0.2</code>) that ...
Johan
<p>The problem was that the &quot;configmap-editor&quot; role didn't have enough rules. The correct rules should be:</p> <p><code>[&quot;get&quot;, &quot;watch&quot;, &quot;list&quot;, &quot;create&quot;, &quot;update&quot;, &quot;patch&quot;, &quot;delete&quot;]</code></p>
Johan
<p>I have a Go application running in a Kubernetes cluster which needs to read files from a large MapR cluster. The two clusters are separate and the Kubernetes cluster does not permit us to use the CSI driver. All I can do is run userspace apps in Docker containers inside Kubernetes pods and I am given <code>maprticke...
Mihai Todor
<p>This is a good question because it highlights the way that some environments impose limits that violate the assumptions external software may hold.</p> <p>And just for reference, MapR was acquired by HPE so a MapR cluster is now an HPE Ezmeral Data Fabric cluster. I am still training myself to say that.</p> <p>Anywa...
Ted Dunning
<p>I have a docker image in AWS ECR which is in my secondary account. I want to pull that image to the Minikube Kubernetes cluster using AWS IAM Role ARN where MFA is enabled on it. Due to this, my deployment failed while pulling the Image.</p> <p>I enabled the registry-creds addon to access ECR Image but didn't work o...
Arun546
<p>While the <code>minikube addons</code> based solution shown by @DavidMaze is probably cleaner and generally preferable, I wasn't able to get it to work.</p> <p>Instead, I <a href="https://stackoverflow.com/questions/55223075/automatically-use-secret-when-pulling-from-private-registry">found out</a> it is possible to...
Caesar
<p>I am getting "extension (5) should not be presented in certificate_request" when trying to run locally a Java Kubernetes client application which queries the Kubernetes cluster over a lube proxy connection. Any thoughts? Thanks in advance</p> <pre><code> ApiClient client = null; try { client = Config.d...
Alexander F
<p>Which version of Java are you using?</p> <p>JDK 11 onwards have support for TLS 1.3 which can cause the error <code>extension (5) should not be presented in certificate_request</code>.</p> <p>Add <code>-Djdk.tls.client.protocols=TLSv1.2</code> to the JVM args to make it use <code>1.2</code> instead.</p> <p>There ...
zcourts
<p>i'm launching a glassfish pod on my Kubernetes cluster, and i'm trying to copy some .war files from a folder that's on my host, but the command cp always seems to fail.</p> <p>my yaml file:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-cod...
kubernoobus
<p>Two things to note here:</p> <ol> <li>If you want to copy a direcyory using <code>cp</code>, you have to provide the <code>-a</code> or <code>-R</code> flag to <code>cp</code>:</li> </ol> <blockquote> <pre><code> -R If source_file designates a directory, cp copies the directory and the entire subtree connected ...
mhutter
<p>I am having problems when populate magnum database, please help me.</p> <p>I have followed the docs.</p> <p><a href="https://docs.openstack.org/magnum/train/install/install-rdo.html" rel="nofollow noreferrer">https://docs.openstack.org/magnum/train/install/install-rdo.html</a></p> <pre><code>sudo su -s /bin/sh -c &q...
giangnvh
<p>This is a <a href="https://github.com/sqlalchemy/alembic/issues/699" rel="nofollow noreferrer">bug</a> when running Magnum on MySQL 8.0. This bug was just recently fixed. <a href="https://github.com/openstack/magnum/commit/8dcf91b2d3f04b7b5cb0e7711d82438b69f975a1" rel="nofollow noreferrer">https://github.com/opensta...
eandersson
<p>Is there any shorter alias on the kubectl/oc for deployments? In OpenShift you have deployment configurations and you can access them using their alias <code>dc</code>.</p> <p>Writing <code>deployment</code> all the time takes too much time. Any idea how to shorten that without setting a local alias on each machine?...
Rtholl
<p>All of the above answers are correct and I endorse the idea of using aliases: I have several myself. But the question was fundamentally about shortnames of API Resources, like <code>dc</code> for <code>deploymentcontroller</code>.</p> <p>And the answer to that question is to use <code>oc api-resources</code> (or <co...
David Ogren
<p>I have a UI application written in Angular, which has a backend running in NodeJS. I also have two other services which will be invoked from the NodeJS backend. These applications are running in docker containers and are deployed to a Kubernetes cluster in AWS. </p> <p>The flow is like this:</p> <p>AngularUI -> No...
Athomas
<p>The ELB has a static DNS hostname, like <code>foobar.eu-west-4.elb.amazonaws.com</code>. When you have a domain at hand, create an A record (alias) that points to this DNS hostname. E.g.</p> <pre><code>webservice.mydomain.com -&gt; mywebservicelb.eu-west-4.elb.amazonaws.com </code></pre> <hr> <p>You can also use ...
DarkLeafyGreen
<p>I'm new to helm and Kubernetes world. I'm working on a project using Docker, Kubernetes and helm in which I'm trying to deploy a simple Nodejs application using helm chart on Kubernetes.</p> <p>Here's what I have tried:</p> <p><strong>From <code>Dockerfile</code>:</strong></p> <pre><code>FROM node:6.9.2 EXPOSE 30...
Abdul Rehman
<p>Run <code>kubectl describe pod &lt;yourpod&gt;</code> soon after the error occurs and there should be an event near the bottom of the output that tells you exactly what the image pull problem is.</p> <p>Off the top of my head it could be one of these options:</p> <ul> <li>It's a private repo and you haven't provid...
Brett Wagner
<p>I have found some similar questions to kubernetes API server not starting but the error message I am getting is different. I have had a working cluster for several months, went to login yesterday and it was offline. Looked around in some log files and this is what I get below, looks like its trying to make a DNS que...
Duncan Krebs
<p>In case anybody else comes across this issue, it had to do with a missing entry in my /etc/hosts file, there needs to be a line "127.0.0.1 localhost" for the api server to start correctly. If that is missing it tries to use a DNS server lookup which does not make sense, happy I have it working! </p>
Duncan Krebs
<p>I have deployed my application via docker on Google Kubernetes cluster. I am facing an application error due to which I want to enter inside the container and check a few things. At local, all I had to do was run <code>sudo docker ps</code> and then exec -it into the container.</p> <p>How can I do that when contain...
aviral sanjay
<p>You need to use kubectl</p> <pre><code>kubectl get pods kubectl exec -it pod-container-name -- /bin/bash </code></pre>
Edmhs
<p>If host is * in ingress resource, how do I curl path? use Nginx Ingress Controller</p> <pre><code>curl -kL &lt;ingress-ip&gt;/path curl -kL &lt;controller-service-ip&gt;/path curl -kL &lt;node-ip&gt;/path Is only curl -kL /path possible? </code></pre>
john chen
<p>You have not told what Ingress implementation you are using. Some ingress services even run outside of Kubernetes so there is no generic answer except running <code>kubectl describe ingress &lt;my-ingress&gt;</code> then curl whatever address it shows.</p>
Petter Nordlander
<p><strong>My Application:</strong></p> <p>I have one production application named <strong>&quot;Realtime Student Streaming Application&quot;</strong>. and it is connected to MongoDB1 and i have Student table(collection) inside of it.</p> <p><strong>My Task:</strong></p> <ol> <li>My Application will Listen for any inse...
Vaishagkumar techy
<p>This really isn't an OpenShift or Kubernetes question, it's an application design question. Fundamentally, it's up to <em>you</em> to shard the data in some fashion. Fundamentally it's a difficult problem to solve, and even tougher to solve once you start tackling problems around transactionality, scaling up/down an...
David Ogren
<p>I have a working Kubernetes deployment of my application.</p> <pre><code>--- apiVersion: apps/v1 kind: Deployment metadata: name: my-app spec: ... template: ... spec: containers: - name: my-app image: my-image ... readinessProbe: httpGet: port:...
Maksim Sorokin
<p>As @suren wrote in the comment, readiness probe is still executed after container is started. Thus if both liveness and readiness probes are defined (and also fx they are the same), both readiness and liveness probe can fail.</p> <p>Here is <a href="https://stackoverflow.com/questions/44309291/kubernetes-readiness-...
Maksim Sorokin
<p>I'm trying to tweak my Kubernetes-based app to make it more development-friendly. I'm using <code>kustomize</code> to add some extra containers into my <code>app-deployment</code>. It looks like this:</p> <pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: app-deployment spec: template: spec: ...
mpen
<p>No, <strong>Kubernetes</strong> mounts, unlike <strong>Docker</strong> mounts do not allow mounting one directory over the other. Potential <code>VOLUME</code> lines from the <code>Dockerfile</code> do not matter.</p> <p>A common solution for your use-case is, to use an <strong>init container</strong> to set up the ...
pst
<p>I'm creating Kubernetes clusters programmatically for end-to-end tests in GitLab CI/CD. I'm using <code>gcloud container clusters create</code>. I'm doing this for half a year and created and deleted a few hundred clusters. The cost went up and down. Now, I got an unusually high bill from Google and I checked the co...
Kalle Richter
<p>Suggestions:</p> <ol> <li><p>To answer your immediate question: you can programatically delete your disk resource(s) with the <a href="https://cloud.google.com/compute/docs/reference/rest/v1/disks/delete" rel="nofollow noreferrer">Method: disks.delete</a> API.</p></li> <li><p>To determine what other resources might...
paulsm4
<p>Pod containers are not ready and stuck under Waiting state over and over every single time after they run sh commands (/bin/sh as well). As example all pod's containers seen at <a href="https://v1-17.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables...
Stefan
<p>This happens because the process in the container you are running has completed and the container shuts down, and so kubernetes marks the pod as completed. </p> <p>If the command that is defined in the docker image as part of <code>CMD</code>, or if you've added your own command as you have done, then the container...
julz256
<p>I am trying to collect some information regarding the kubernetes namespaces. I found a command where you can see some information.</p> <pre><code>kubectl describe resourcequota -n my-namespaces </code></pre> <p>I have as return:</p> <pre><code>Name: gke-resource-quotas Namespace: ...
Danilo Marquiori
<ol> <li>run first <code>kubectl get quota</code></li> <li>then it will display quotas available</li> <li>then run <code>kubectl describe quota &lt;quota name&gt;</code></li> </ol> <p>if you don't have any custom quota then you can create it as describe from <a href="https://kubernetes.io/docs/concepts/policy/resource-...
Abhijit Gaikwad
<p>I have two pending pods which I cannot delete by any means. Could you help? OS: Cent OS 7.8 Docker: 1.13.1 kubenetes: &quot;v1.20.1&quot;</p> <pre><code>[root@master-node ~]# k get pods --all-namespaces (note: k = kubectl alias) NAMESPACE NAME READY STATUS ...
Sean Lee
<p>kubectl delete rc replica set names</p> <p>Or You forgot to specify storageClassName: manual in PersistentVolumeClaim.</p>
Abhijit Gaikwad
<p>I am trying to create a mongodb user along with a stateful set. Here is my .yaml file:</p> <pre><code>apiVersion: v1 kind: Service metadata: name: mongo labels: name: mongo spec: type: NodePort ports: - port: 27017 targetPort: 27017 selector: name: mongo --- apiVersion: v1 kind: Secret metadata: na...
Kiramm
<p>One of the resources in your yaml file refers to a <code>kind</code> that doesn't exist in your cluster.</p> <p>You can check this by running the command <code>kubectl api-resources | grep mongo -i</code></p> <p>Specifically it's the resource of kind <code>MongoDBUser</code>. This API resource type is part of <a h...
julz256
<p>I downloaded minikube after that ...</p> <ol> <li>I did <code>minikube start</code>... so, node started</li> <li>I played around with some containers(deployment object)</li> <li>Now when I am doing <code>docker ps</code> =&gt; it's showing all the k8's container running -_-&quot;</li> </ol> <p><strong>What I wanted...
Ashutosh Tiwari
<p>Since you started minikube without specifying driver, the host docker daemon will be used, so you can access it without any special environment variables. That’s why you see “ <em>Exiting due to ENV_DRIVER_CONFLICT: 'none' driver does not support 'minikube docker-env' command</em>”</p> <p>Try starting minikube using...
Abhijit Gaikwad
<p>I am using Openshift 4, CPU Request: 0.2, Limit 0.4.</p> <p>From the monitoring, I can see the CPU usage started from 0.1, and increased gradually. Is it because that there is a machanisim to prevent over reserve the CPU usage?</p> <p>Can I setup that the pod to use the max request CPU from the beginning, and adapt...
Jim
<p>The max limit is already available from the beginning (presuming that the node has the CPU available to give). OCP is using CFS to enforce that limit, and CFS doesn't have anything that gradually kicks in, CFS only has one thing it considers: the configured limit.</p> <p>As for why you are seeing this in your monito...
David Ogren
<p>I created a Docker image based on microsoft/dotnet-framework of a C#.NET console application built for Windows containers, then ensured I can run the image in a container locally. I successfully pushed the image to our Azure Container registry. Now I'm trying to create a deployment in our Azure Kubernetes service, b...
Will
<p><strong>1. What causes this unknown blob error? Does it have to do with a Windows container/Linux container mismatch?</strong> It's because you're trying to run a Windows-based Docker container on a Linux host. It has nothing directly to do with Kubernetes or AKS. Currently AKS is in preview and supports only Linux ...
dmusial
<p>I'm working on a custom controller for a custom resource using kubebuilder (version 1.0.8). I have a scenario where I need to get a list of all the instances of my custom resource so I can sync up with an external database.</p> <p>All the examples I've seen for kubernetes controllers use either client-go or just ca...
Chris Tavares
<p>So figured it out - the answer is to pass <code>nil</code> for the second parameter. The type of the output pointer determines which sort of resource it actually retrieves.</p>
Chris Tavares
<p>I am trying to convert a docker compose file to a kubernetes manifest for deployment and after installing the Kompose on my system, I used the command <code>kompose convert -f docker-compose.yml</code> for the conversion process but it is not working. The error response is <code>←[31mFATA←[0m services.web.stdin_open...
Sam Bayo
<p>Change stdin_open to true instead of ”true”</p> <pre><code>services: web: stdin_open: true </code></pre>
Abhijit Gaikwad
<p>How can I modify the values in a Kubernetes <code>secret</code> using <code>kubectl</code>?</p> <p>I created the secret with <code>kubernetes create secret generic</code>, but there does not seem to be a way to modify a secret. For example, to add a new secret-value to it, or to change a secret-value in it.</p> <p>I...
gabor
<p>The most direct (and interactive) way should be to execute <code>kubectl edit secret &lt;my secret&gt;</code>. Run <code>kubectl get secrets</code> if you'd like to see the list of secrets managed by Kubernetes.</p>
Timo Reimann
<p>I have a container with a dotnet core application running in Azure Kubernetes Service. No memory limits were specified in Pod specs.</p> <p>The question is why GC.GetTotalMemory(false) shows approx. 3 Gb of memory used while AKS Insights shows 9.5 GB for this Pod container?</p> <p><a href="https://i.stack.imgur.com/...
Anton Petrov
<p>As I understand <code>GC.GetTotalMemory(false)</code> returns the size of managed objects in bytes but the entire working memory set is much larger because memory is allocated in pages and because of managed heap fragmentation and because GC is not performed.</p>
Anton Petrov
<p>I'm trying to understand why this particular <code>socat</code> command isn't working in my case where I run it in a IPv6 only Kubernetes cluster.</p> <p>Cluster is build on top of AWS with Calico CNI &amp; containerd. Provisioned using <code>kubeadm</code> and Kubernetes 1.21.</p> <p>I have run the following <code>...
nixgadget
<p>For those of you running into a similar issue with your IPv6 only Kubernetes clusters heres what I have investigated found so far.</p> <p><strong>Background:</strong> It seems that this is a generic issue relating to IPv6 and CRI. I was running <code>containerd</code> in my setup and <code>containerd</code> versions...
nixgadget
<p><strong>I wanna have a trigger when I make a deployment of my React application, and my pod is finally <code>running</code></strong></p> <p>I need this Kubernetes trigger, in order to launch another pod which is gonna copy/past the static files for another pod specific just made for static files. (I wanna do this to...
Thomas Aumaitre
<p>Ideally you should use <code>init-containers</code> pattern described here <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/workloads/pods/init-containers/</a></p> <p><a href="https://kubernetes.io/docs/tasks/configure-pod-con...
Abhijit Gaikwad
<p>Im trying to launch two Cassandra statefulset instances and respective PVC in a cluster created in AWS AZ (Across 3 zones, <em>eu-west-1a</em>, <em>eu-west-1b</em> &amp; <em>eu-west-1c</em>). </p> <p>I created a node group with the following 2 nodes so as shown these nodes attach in the zones <em>eu-west-1a</em> an...
nixgadget
<p>Looking at <a href="https://v1-11.docs.kubernetes.io/docs/concepts/storage/storage-classes/" rel="nofollow noreferrer">https://v1-11.docs.kubernetes.io/docs/concepts/storage/storage-classes/</a> <code>allowedTopologies</code> doesnt exist.</p> <p>So I used <code>zones: eu-west-1a, eu-west-1b</code> in the <code>Sto...
nixgadget
<p>I have installed Rancher Desktop. It is working perfectly except for the inability for nerdctl and k3s to download docker images from hub.docker.com from behind my corporate firewall.</p> <p>Question 1: After downloading Rancher Desktop, how do I set my corporate proxy credentials such that Kubernetes (with Rancher...
Jerrod Horton
<p>I am using mac. In mac. machine, add proxy details to /etc/conf.d/docker file.</p> <pre><code>#rdctl shell #sudo su - #vi /etc/conf.d/docker NO_PROXY=&quot;localhost,127.0.0.1&quot; HTTPS_PROXY=&quot;http://HOST:PORT&quot; HTTP_PROXY=&quot;http://HOST:PORT&quot; export HTTP_PROXY export HTTPS_PROXY expo...
Vallabha Vamaravelli
<p>I have written a simple spring boot application(version springboot 2.0) which uses mysql(version 5.7).</p> <p><strong>application.properties</strong> snippet</p> <pre><code>spring.datasource.url = jdbc:mysql://localhost:3306/test?useSSL=false spring.datasource.username = testuser spring.datasource.password = testp...
Shivraj
<p>SUGGESTION: If you have a relatively small #/properties, why not just have a different application.properties file for each different environment?</p> <p>You'd specify the environment at runtime with <code>-Dspring.profiles.active=myenv</code>.</p> <p>Look <a href="https://docs.spring.io/spring-boot/docs/current/r...
paulsm4
<p>I'm creating three EKS clusters using <a href="https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest" rel="nofollow noreferrer">this</a> module. Everything works fine, just that when I try to add the configmap to the clusters using <code>map_roles</code>, I face an issue.</p> <p>My configuration...
Red Bottle
<p>The aws-auth configmap is created by EKS, when you create a managed node pool. It has the configuration required for nodes to register with the control plane. If you want to control the contents of the configmap with Terraform you have two options.</p> <p>Either make sure you create the config map before the managed...
pst
<p>Friends,</p> <p>I'm trying to deploy a mysql cluster on minikube using the helm chart of Bitnami. It's not working apparently because of lack of space since I'm getting the following error: <strong>mkdir: cannot create directory '/bitnami/mysql/data': No space left on device</strong>.</p> <p>I am running minikube (v...
marcelo
<p><code>minikube stop &amp;&amp; minikube delete</code> then</p> <pre><code>minikube start --disk-size 50000mb </code></pre>
Abhijit Gaikwad
<p>I really dont understand this issue. In my <code>pod.yaml</code> i set the <code>persistentVolumeClaim</code> . i copied on my lastapplication declaration with PVC &amp; PV. i've checked that the files are in the right place ! on my Deployment file i've just set the port and the spec for the containers. </p> <pre...
morla
<p>Your PersistentVolumeClaim is probably bound to the wrong PersistentVolume.</p> <p>PersistentVolumes exist cluster-wide, only PersistentVolumeClaims are attached to a namespace:</p> <pre><code>$ kubectl api-resources NAME SHORTNAMES APIGROUP NAMESPACED KIND persistentvolumeclaims pvc ...
Florian Neumann
<p>I have been running a spring boot application on Kubernetes with using JDK 11 image. My expectation is that when the JVM hits out of memory exception then the pod should be killed so that Kubernetes can bring up a larger pod. I can confirm that this is not what's happening. I am not sure if there are some JVM argume...
Ali
<p>Minikube may not have enough memory.</p> <p>You can check memory settings by minikube start -h</p> <p>Then minikube stop &amp;&amp; minikube start --cpus 4 --memory 2048</p> <p>Update: try setting heap size -Xms1g -Xmx2g while starting java application</p>
Abhijit Gaikwad
<p>I had deploy a tomcat on kubernetes and when I run this command : <code>kubectl describe svc dev-tomcat</code> I have this :</p> <pre><code>Name: dev-tomcat Namespace: dev Labels: &lt;none&gt; Annotations: &lt;none&gt; Selector: app=dev-tomcat Type: Cluster...
rodolf12343
<p>Use <code>IP</code> from the output, try <code>10.50.54.10:8080</code></p> <p>Update:</p> <p>for minikube, you need to use <code>NodePort</code></p> <p>I did following</p> <pre><code> kubectl create deployment tomcatinfra --image=saravak/tomcat8 kubectl expose deployment tomcatinfra --port=8080 --target...
Abhijit Gaikwad
<p>Both pods are scheduled on same node with podaffinity, each pod on a different namespace. Once I try to deploy both of them on same namespace, podaffinity fails, and one one pod is running while the other one remains pending with podaffinity error. Thanks!</p>
Tzvika Avni
<p>From your comment, I suspect that you have a label collision that is only apparent when you try to run the pods in the same namespace. </p> <p>Take a look at your <a href="https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector" rel="nofollow noreferrer"><code>nodeSelectorTerms</code></a> a...
Dan O'Boyle
<p>I am attempting to enforce a limit on the number of pods per deployment within a namespace / cluster from a single configuration point. I have two non-production environments, and I want to deploy fewer replicas on these as they do not need the redundancy.</p> <p>I've read <a href="https://kubernetes.io/docs/tasks/...
Alexander
<p>Since the replicas is a fixed value on a deployment YAML file, you may better to use <a href="https://helm.sh/" rel="nofollow noreferrer">helm</a> to make a template for adding some flexibility in your application.</p>
Eric Ho
<p>I'm trying to deploy a simple .NET App in local kubernetes cluster (Kind) for testing purposes. When a deployment is applied, a pod doesn't start with an error. But the image is built well as a container works well if started locally in Docker.</p> <pre><code>NAME READY STATUS RESTAR...
Dmitriy
<p>The reason was when a volume was mounted to <code>/app</code> it wiped out all the container's <code>/app</code> content.</p> <p>I fixed the issue by editing the following deployment's part:</p> <pre><code>volumeMounts: - name: appsettings-volume mountPath: /app/appSettings.json subPath: ...
Dmitriy
<p>I am trying to run the <a href="https://github.com/akka/akka-sample-cluster-kubernetes-scala" rel="nofollow noreferrer">akka-sample-cluster-kubernetes-scala</a> as it is recommended to deploy an Akka cluster on to minikube using <code>akka-management-cluster-bootstrap</code>. After run every step recommended on the ...
Felipe
<p>You are getting your contact point error because you are trying to use <code>sbt run</code>. <code>sbt run</code> will run a single instance outside of minikube, which isn't what you want. And since it's running outside of Minikube it won't pick up the environment variables being set in the container spec. The scrip...
David Ogren
<p>We have realised the mistake of using a Deployment with a PVC for our stateful app instead of going with Statefulset. I was wondering how the upgrade would work. How can I point to the old data with the new statefulset ? I am guessing that the old PVC cannot be used by the volumeClaimTemplate ? I have not found anyt...
Arunmu
<p>So, here is what I did. First, let me brief about my test setup:</p> <ol> <li>Have a set of deployments running which are having their own PVC+PV for persistence.</li> <li>New release has all of those deployments converted into statefulsets, thus have different PVC.</li> </ol> <p>Problems:</p> <ol> <li><p>You cannot...
Arunmu
<p>I have 2 pods of Redmine deployed with Kubernetes the problem due to this the issue of session management is happening so some users are unable to login due to this so I came up with the idea to store the cache of both the pods in Redis server with Kubernetes(Centralized).<br> I am giving the below configuration ins...
user12417145
<p>Redmine doesn't store any session data in its cache. Thus, configuring your two Redmines to use the same cache won't help.</p> <p>By default Redmine stores the user sessions in a signed cookie sent to the user's browser without any server-local session storage. Since the session cookie is signed with a private key,...
Holger Just
<p>I see this command to temporarily run a pod</p> <pre><code>k run -it pod1 --image=cosmintitei/bash-curl --restart=Never --rm </code></pre> <p>What does <code>-it</code> mean here ?</p> <p>I don't know about the <code>-it</code> being used here. Why is it being used? What else can it be used for?</p>
ANKIT RAWAT
<p>The <code>-it</code> a a short form of <code>-i -t</code> which in turn is a short form of <code>--stdin --tty</code>.</p> <p>As such, this instructs kubernetes to</p> <ul> <li>pass its STDIN to the started process</li> <li>and to present STDIN as a TTY (i.e. a interactive terminal)</li> </ul>
Holger Just
<p>I have installed dask-gateway via the helm chart. I assume that I can provide an options handler in the <code>gateway.backend.extraConfig</code> section of the chart values. I would also assume I can then configure any option for <a href="https://gateway.dask.org/api-server.html#kube-cluster-config" rel="nofollow no...
shaunc
<p>In fact, <code>KubeClusterConfig</code> contains the option <code>worker_extra_pod_config</code>, which is a dictionary merged into the pod spec, so <code>imagePullSecrets</code> can be specified here.</p>
shaunc
<p>I have the following <code>PersistentVolumeClaim</code> and <code>Deployment</code> in Kubernetes:</p> <pre><code>kind: PersistentVolumeClaim apiVersion: v1 metadata: name: my-app-storage spec: accessModes: - ReadWriteOnce resources: requests: storage: 25Gi storageClassName: &quot;gp2&quot; <...
Justin
<p>I ended up converting the <code>Deployment</code> to a <code>StatefulSet</code> and this works. Key thing is remove the <code>PersistentVolumeClaim</code> and update the Deployment to a StatefulSet and use the following props:</p> <pre><code> volumeClaimTemplates: - metadata: name: storage spec: a...
Justin
<p>I just have a doubt on whether is possible to run multiples liveness probes in the same <code>deployment.yaml</code>. For example: I already have a liveness probe that runs a python script that check my application like:</p> <pre><code>livenessProbe: failureThreshold: 5 initialDelaySeconds: 15 timeoutSeconds: ...
Arthur Ávila
<p>Hi Currently its not possible,</p> <p>as a workaround you can do something like this</p> <pre><code>&quot;livenessProbe&quot;: { &quot;exec&quot;: { &quot;command&quot;: [&quot;sh&quot;, &quot;-c&quot;, &quot;reply=$(curl -s -o /dev/null -w %{http_code} http://&lt; healthcheck url...
Abhijit Gaikwad
<p>I create a ingress by this example:</p> <pre><code>$ echo ' apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: /$2 name: rewrite spec: ingressClassName: nginx rules: - host: my.hostname.com http: paths: - path: /something(/|...
PaleNeutron
<p>OpenShift routers aren't based on nginx, so nginx annotations/rules aren't going to do anything. If the <a href="https://docs.openshift.com/container-platform/4.11/networking/routes/route-configuration.html#nw-route-specific-annotations_route-configuration" rel="nofollow noreferrer">builtin HAProxy based functionali...
David Ogren
<p>I would like to install Kubernetes on my debian machine:</p> <pre><code>Distributor ID: Debian Description: Debian GNU/Linux 9.5 (stretch) Release: 9.5 Codename: stretch </code></pre> <p>Looking into google deb package archive I only find the package for "kubectl", nothing else:</p> <p><a href="ht...
Literadix
<p>As of K8S 1.18.5 I am not aware of any official DEB package from Google unfortunately. I would highly recommend you build your own DEB package on Debian Stretch. I have created 2 examples on how to do so with Debian 10 and Ubuntu 18.04 at <a href="https://github.com/runlevel5/kubernetes-packages" rel="nofollow noref...
Trung Lê
<p>While trying to add/update a dependency to a helm chart I'm getting this error. No helm plugins are installed with the name <code>helm-manager</code>.</p> <pre class="lang-sh prettyprint-override"><code>$ helm dep update ...
merqurio
<p>I get this sometimes when there's a mismatch between my <code>Chart.yaml</code> and the configuration of my subchart dependencies.</p> <p>For instance:</p> <p><code>Chart.yaml</code>:</p> <pre class="lang-yaml prettyprint-override"><code>dependencies: - name: foo ... - name: bar ... </code></pre> <p><code>values...
Jon O
<p>Based on the docs that I've read, there are 3 methods of patching:</p> <ul> <li>patches</li> <li>patchesStrategicMerge</li> <li>patchesJson6902.</li> </ul> <p>The difference between <code>patchesStrategicMerge</code> and <code>patchesJson6902</code> is obvious. <code>patchesStrategicMerge</code> requires a duplicate...
Alex
<p>The explanation for this is <a href="https://github.com/kubernetes-sigs/kustomize/issues/2705#issuecomment-659012281" rel="noreferrer">here</a>.</p> <p>To summarize, <code>patchJson6902</code> is an older keyword which can only match one resource via <code>target</code> (no wildcards), and accepts only Group-version...
Raman
<p>I'm running Microk8s on an EC2 instance. I fail to pull containers from our private registry. When trying to run such a container <code>kubectl describe pod</code> shows:</p> <blockquote> <p>Failed to pull image "docker.xxx.com/import:v1": rpc error: code = Unknown desc = failed to resolve image "docker.xxx.c...
Achim
<p>If you are getting an error <code>401</code> probably something is wrong with the authentication. E.g. you are missing credentials to your private registry. </p> <p>To make sure that microk8s would use proper credentials, in addition of <code>mirrors</code> sections within the configuration you have to specify <cod...
mtfk
<p>I have a react application that is hosted in a nginx container using static files that are prepared in a build step. The problem I run in to is that the API URL is then hard coded in the js files and I get a problem when I want to deploy the application to different environments.</p> <p>So basically I have put a co...
KungWaz
<p>What I ended up doing was setting it up like this:</p> <p>First I added a <strong>configmap.yaml</strong> to generate the config.js file</p> <pre><code>apiVersion: v1 kind: ConfigMap metadata: name: config-frontend data: config.js: |- window.env = { API_URL: "{{ .Values.service.apiUrl }}" } </cod...
KungWaz
<p>I am trying to create two containers within a pod with one container being an init container. The job of the init container is to download a jar and make it available for the app container. I am able to create everything and the logs look good but when i check, i do not see the jar in my app container. Below is my d...
daze-hash
<p>You need to save jar in the <code>/jdbc-jar</code> folder</p> <p>try updating your yaml to following</p> <pre><code>command: [&quot;/bin/sh&quot;] args: [&quot;-c&quot;, &quot;wget -O /pod-data/ojdbc8-19.3.0.0.jar https://repo1.maven.org/maven2/com/oracle/ojdbc/ojdbc8/19.3.0.0/ojdbc8-19.3.0.0.jar&quot;] </code></pr...
Abhijit Gaikwad
<p>It's simple to apply complicate yaml config using <code>kubectl</code>, for example, installing the <a href="https://github.com/Kong/kubernetes-ingress-controller#get-started" rel="nofollow noreferrer">kong-ingress-controller</a> is simply one line using <code>kubectl</code>:</p> <pre><code>kubectl apply -f https:/...
DiveInto
<p>figured out by checking out this issue: <a href="https://github.com/kubernetes/client-go/issues/193#issuecomment-363318588" rel="nofollow noreferrer">https://github.com/kubernetes/client-go/issues/193#issuecomment-363318588</a></p> <p>I'm using <code>kubebuilder</code>, simple turn yamls into <code>runtime.Objects<...
DiveInto
<p>I ran into the above stated error and the most popular answer for this error is adding 'selector:' to the yaml file. I get this error even after adding it. Can you please help me rectify this issue?</p> <p>deployment.yml</p> <pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: sampleapp labels: ap...
vishal_P
<p>You need to add selection rules to your <code>selector</code> in the <em>fortio.yml</em>, e.q.</p> <pre><code>apiVersion: apps/v1 kind: Deployment metadata: name: fortio spec: replicas: 1 selector: matchLabels: app: fortio template: metadata: labels: app: fortio spec: c...
Sebastian
<p>When I push my deployments, for some reason, I'm getting the error on my pods:</p> <blockquote> <p>pod has unbound PersistentVolumeClaims</p> </blockquote> <p>Here are my YAML below:</p> <p>This is running locally, not on any cloud solution.</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: e...
soniccool
<p>You have to define a <strong>PersistentVolume</strong> providing disc space to be consumed by the <strong>PersistentVolumeClaim</strong>.</p> <p>When using <code>storageClass</code> Kubernetes is going to enable <strong>&quot;Dynamic Volume Provisioning&quot;</strong> which is not working with the local file system....
Florian Neumann
<p>I have installed the kube-prometheus stack on k8s via helm:</p> <pre><code>helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring -f alertmanager-config.yaml </code></pre> <p>where the <code>alertmanager-config.yaml</code> looks as follows:</p> <pre><code>alertmanager: config: global:...
tobias
<p>You can read the cluster name from Prometheus' labels as guided in the other answer.</p> <p>Another option is to define a template for cluster name.</p> <pre class="lang-yaml prettyprint-override"><code> receivers: - name: 'slack-notifications' slack_configs: - channel: '#lolcats' send_res...
Petrus Repo
<p>I'm new to go and playing with k8s go-client. I'd like to pass items from <code>deploymentsClient.List(metav1.ListOptions{})</code> to a funcion. <code>fmt.Printf("%T\n", deploy)</code> says it's type <code>v1.Deployment</code>. So I write a function that takes <code>(deploy *v1.Deployment)</code> and pass it <code>...
user1855481
<p>You need to import "k8s.io/api/apps/v1", Deployment is defined in the package. See <a href="https://godoc.org/k8s.io/api/apps/v1" rel="nofollow noreferrer">https://godoc.org/k8s.io/api/apps/v1</a>.</p>
Dagang
<p>First of all to put some context on that question.</p> <ul> <li>I have an <code>EKS</code> cluster with version >= <code>1.15</code></li> <li>The <code>EFS</code> - <code>EKS</code> <code>security group</code> / <code>mount target</code> etc. are working properly</li> <li>The <code>CSI</code> driver for <code>EFS</...
Asa
<p>There's now documentation available: <a href="https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/access_points/README.md#create-access-points-in-efs" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/aws-efs-csi-driver/blob/master/examples/kubernetes/access_points/README...
Petrus Repo
<p>To preface this I’m working on the GCE, and Kuberenetes. My goal is simply to expose all microservices on my cluster over SSL. Ideally it would work the same as when you expose a deployment via type=‘LoadBalancer’ and get a single external IP. That is my goal but SSL is not available with those basic load balancer...
Steve
<p>So, for #2, you've probably ended up provisioning a Google HTTP(S) LoadBalancer, probably because you're missing the <code>kubernetes.io/ingress.class: "nginx"</code> annotation as described here: <a href="https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx#running-multiple-ingress-controller...
IanI
<p>The Python API is available to read objects from a cluster. By cloning we can say:</p> <ol> <li>Get a copy of an existing Kubernetes object using <code>kubectl get</code></li> <li>Change the properties of the object</li> <li>Apply the new object</li> </ol> <p>Until recently, the option to <a href="https://medium.c...
Marcello DeSales
<p>After looking at the requirement, I spent a couple of hours researching the Kubernetes Python API. <a href="https://github.com/kubernetes-client/python/issues/340" rel="nofollow noreferrer">Issue 340</a> and others ask about how to transform the Kubernetes API object into a <code>dict</code>, but the only workaround...
Marcello DeSales
<p>As far as I can see, GKE seems to be slighty more complex to configure and deploy an application (using Kubernetes direct files or Helm Charts or something else ?). Furthermore it seems to have no better pod failure detection or better performances ?</p> <p>Why should we use GKE whereas there is GAE which only need...
Kelindil
<p>Google Kubernetes Engine(GKE) is a cluster manager and orchestration system for running your Docker containers. Google App Engine(GAE) is basically google managed containers. </p> <p>They both try to provide you similar main benefits(scalability, redundancy, rollouts, rollbacks, etc.). <strong>The main difference i...
Caner
<p>I am running my elixir app on GKE</p> <p>here is my deployment configuration:</p> <pre><code>apiVersion: extensions/v1beta1 kind: Deployment metadata: name: myapp namespace: production spec: replicas: 1 revisionHistoryLimit: 1 strategy: type: RollingUpdate template: metadata: labels: ...
dina
<p>You'll need to add probes that will check if your application is healthy.</p> <p>Since you mentioned a <code>502</code>, I'm assuming this is a Phoenix application and you can add a health-check endpoint:</p> <pre><code>livenessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 3 periodSe...
Rawkode
<p>I am trying to achieve zero downtime deployment process, but it is not working.</p> <p>My deployment has one replica. The pod probes look like this:</p> <pre><code>livenessProbe: httpGet: path: /health/live port: 80 initialDelaySeconds: 15 periodSeconds: 20 readinessProbe: httpGet: path: /healt...
kosnkov
<p>The problem was in </p> <pre><code>kind: Service spec: type: ClusterIP selector: app: maintenance-api version: "1.0.0" stage: #{Release.EnvironmentName}# release: #{Release.ReleaseName}# </code></pre> <p>if selector is sth like #{Release.ReleaseName}# which changes every release then its like ...
kosnkov
<p>My scrapy spider always stopped at the 1000th request in Kubernetes pods. I can't found any problem. It's just close my spider.</p> <p>I had tested in terminal and docker in local with no problems.</p> <p>Please help me deal with it.</p> <pre><code>2021-09-23 09:36:41 [scrapy.core.engine] INFO: Closing spider (finis...
Tín Trung
<p>The &quot;finished&quot; status usually means that the job ran just fine. However, some sites have hard limits for pagination and/or items displayed in searches. Are you able to reach the 1001th item in a browser?</p>
Thiago Curvelo
<p>I got the following service defined: </p> <pre><code>apiVersion: v1 kind: Service metadata: name: customerservice spec: type: NodePort selector: app: customerapp ports: - protocol: TCP port: 31004 nodePort: 31004 targetPort: 8080 </code></pre> <p>Current situation: I am able to hit the po...
elp
<p>DNS resolution of services is ONLY available within the cluster, provided by CoreDNS/KubeDNS.</p> <p>Should you wish to have access to this locally on your machine, you'd need to use another tool. One such tool is <code>kubefwd</code>:</p> <p><a href="https://github.com/txn2/kubefwd" rel="nofollow noreferrer">http...
Rawkode
<p>I have an API and MongoDB that was hosted on Kubernetes (EKS on AWS specifically). While my API runs completely fine on my local and also Docker local, it was not on the Kubernetes cluster.</p> <p>When I get the logs from <code>kubernetes logs -f &lt;pod-name&gt;</code>, I get below exceptions:</p> <pre><code>Unexpe...
Sivvie Lim
<p>Based on the exception message and the stack trace, <code>connectionString</code> is <code>null</code>. Check your config -- it's missing in your non-dev config.</p>
Igor Pashchuk
<p>After upgrading from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS, I am currently facing issues with my k3s cluster.</p> <p>For instance, the logs of the <code>local-path-provisioner</code> pod:</p> <pre class="lang-sh prettyprint-override"><code>$ kubectl logs -n kube-system local-path-provisioner-6c79684f77-l4cqp time=&qu...
Charles Guertin
<p>Since you're using Cilium, I think you might be running into this issue: <a href="https://github.com/cilium/cilium/issues/10645" rel="nofollow noreferrer">https://github.com/cilium/cilium/issues/10645</a></p> <p>The workaround is to ensure <code>net.ipv4.conf.lxc*.rp_filter</code> is set to 0:</p> <pre><code>echo 'n...
Sam Day
<p>Unfortunately, we have to interface with a third-party service which instead of implementing authentication, relies on the request IP to determine if a client is authorized or not.</p> <p>This is problematic because nodes are started and destroyed by Kubernetes and each time the external IP changes. Is there a way ...
rubik
<p>Yes, it's possible by using <a href="https://github.com/doitintl/kubeip" rel="noreferrer">KubeIP</a>.</p> <p>You can create a pool of shareable IP addresses, and use KubeIP to automatically attach IP address from the pool to the Kubernetes node.</p> <p>IP addresses can be created by:</p> <ol> <li>opening Google C...
Pedro Rodrigues
<p>According to this <a href="https://github.com/kubernetes-sigs/kubespray/blob/master/docs/vars.md" rel="nofollow noreferrer">documentation</a>, Extra flags for the API server, controller, and scheduler components can be specified using the variables below, in the form of dicts of key-value pairs of configuration para...
nixmind
<p>As documented on <a href="https://kubespray.io/#/docs/ansible?id=group-vars-and-overriding-variables-precedence" rel="nofollow noreferrer">https://kubespray.io/#/docs/ansible?id=group-vars-and-overriding-variables-precedence</a>, you should take a look at <code>inventory/&lt;mycluster&gt;/group_vars/all/all.yml</cod...
zigarn
<p>TL;DR Kubernetes Ingress Nginx controller doesn't keep <code>path</code> if underlying service redirects to a relative URL</p> <p>I have the following Ingress configuration:</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: release-name-test-tool ...
Sansend
<p>I found two steps solution that works for me:</p> <ul> <li>Application side. Spring Boot has a configuration for <a href="https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#howto.webserver.use-behind-a-proxy-server" rel="nofollow noreferrer">Running Behind a Front-end Proxy Server</a>. We need to ...
Sansend
<p>Akka app on Kubernetes is facing delayed heartbeats, even when there is no load. </p> <p>There is also constantly the following warning: </p> <pre><code>heartbeat interval is growing too large for address ... </code></pre> <p>I tried to add a custom dispatcher for the cluster, even for every specific actor but di...
kostas takis
<p>First, thanks for the well documented reproducer. I did find one minor glitch with a dependency you included, but it was easy to resolve.</p> <p>That said, I was unable to reproduce your errors. Everything worked fine on my local machine and on my dev cluster. You don't include your load generator, so maybe I just ...
David Ogren
<p>I am trying to deploy IBM MQ to my local MAC machine using an image hosted on docker hub repository. I am using docker edge version with Kubernetes support on it.</p> <p>I am able to deploy the image successfully using kubernetes and also have the Queue Manager running fine inside the container. I am also able to s...
Anurag
<p>If you need port forwarding to bind to all the network interfaces, you can give this option. This will be useful when working with servers in OpenShift etc where there are different local and floating IPs</p> <blockquote> <p>--address 0.0.0.0</p> </blockquote> <p>Example</p> <pre><code>kubectl port-forward minio-64b...
Alex Punnen
<p>We are looking for viable option to map external windows file share inside <strong>kubernetes+AWS-EKS</strong> hosted docker containers and few of the options. Windows file share being in same VPN is accessible with IP address</p> <p>In absence of anything natively supported by kubernetes esp on EKS, we are trying...
AnilR
<p>You could modify the cloudformation stack to install the drivers after startup, see <a href="https://amazon-eks.s3-us-west-2.amazonaws.com/cloudformation/windows-public-preview/amazon-eks-cfn-quickstart-windows.yaml" rel="nofollow noreferrer">https://amazon-eks.s3-us-west-2.amazonaws.com/cloudformation/windows-publ...
jontro
<p>I want to setup a pre-defined PostgreSQL cluster in a bare meta kubernetes 1.7 with <a href="https://kubernetes.io/docs/concepts/storage/volumes/#local" rel="nofollow noreferrer">local PV</a> enable. I have three work nodes. I create local PV on each node and deploy the stateful set successfully (with some complex s...
Gong Yi
<p>Based on the statefulset <a href="https://v1-7.docs.kubernetes.io/docs/api-reference/v1.7/#statefulset-v1beta1-apps" rel="noreferrer">API reference</a> </p> <blockquote> <p>volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network id...
Jimmy Lu
<p>I have process A and process B. Process A opens a file, calls mmap and write to it, process B do the same but reads the same mapped region when process A has finished writing.</p> <p>Using mmap, process B is suppossed to read the file from memory instead of disk assuming process A has not called munmap.</p> <p>If I ...
rboc
<p>A Kubernetes pod is a group of containers that are deployed together on the same host. (<a href="https://coreos.com/kubernetes/docs/latest/pods.html#:%7E:text=A%20Kubernetes%20pod%20is%20a,and%20accurately%20understand%20the%20concept." rel="noreferrer">reference</a>). So this question is really about what happens f...
Philip Couling
<p>I want to know if it's possible to get metrics for the services inside the pods using Prometheus.</p> <p>I don't mean monitoring the pods but <strong>the processes inside those pods</strong>. For example, containers which have apache or nginx running inside them along other main services, so I can retrieve metrics f...
Jose David Palacio
<p>Prometheus works by scraping an HTTP endpoint that provides the actual metrics. That's where you get the term &quot;exporter&quot;. So if you want to get metrics from the processes running inside of pods you have three primary steps:</p> <ol> <li>You must modify those processes to export the metrics you care about. ...
David Ogren
<p>We are working with Akka and have an application which uses Akka Cluster that we deploy to AWS EKS environment. When we run a load test against the application we observe heartbeat intervals between the components growing large and pods getting restarted. Akka documentation mentions not to use CPU resource limit, an...
Karan Khanna
<p>So, I know the docs do make this recommendation to not use limits so the following is just &quot;unofficial&quot; advice you are getting from StackOverflow. (And thus, if you want support from Lightbend you will have to debate this with them.)</p> <p>Firstly, I agree with you. For many reasons, you absolutely shoul...
David Ogren
<p>I want to deploy helm charts, which are stored in a repository in AWS ECR, in the kubernetes cluster using ArgoCD. But I am getting a 401 unauthorized issue. I have pasted the entire issue below</p> <pre><code>Unable to create application: application spec is invalid: InvalidSpecError: Unable to get app details: rpc...
Abhishek R
<p>Yes, you can use ECR for storing helm charts (<a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html" rel="noreferrer">https://docs.aws.amazon.com/AmazonECR/latest/userguide/push-oci-artifact.html</a>)</p> <p>I have managed to add the repo to ArgoCD, but the token expires so it is not...
tifoz