Question stringlengths 65 39.6k | QuestionAuthor stringlengths 3 30 ⌀ | Answer stringlengths 38 29.1k | AnswerAuthor stringlengths 3 30 ⌀ |
|---|---|---|---|
<p>I'm running into an issue where our nginx-ingress is no longer working properly. We had an issue where one of the worker nodes went down and it ended up evicting a number of ingress pods. We created a new worker node and the pods were recreated with no errors.
The error I was getting was the following when I inspect... | Derek Chen | <p>Upon checking the error messages, It seems like your Ingress resources are using deprecated API version <a href="http://networking.k8s.io/v1beta1" rel="nofollow noreferrer">networking.k8s.io/v1beta1</a> which was deprecated in v 1.19 and the Ingress Controller is unable to find CRD’s that are needed. You should upda... | Ray John Navarro |
<p>which service assigns nameservers under /etc/resolv.conf of pods , generally it should pickup from host /etc/resolv.conf , i'm seeing different nameservers under /etc/resolv.conf of pods, is there is any configuration on kbernetes(kubedns) which i can configure so that pods /etc/resolv.conf have 8.8.8.8</p>
| venkatesh pakanati | <p>I had the same issue over Jenkins deployed on Kubernetes. If you don't mention a nameserver then <em>/etc/resolv.conf</em> shows the default nameserver (ip of k8s).
I solved this by modifying the deploy file with</p>
<pre><code> dnsPolicy: "None"
dnsConfig:
nameservers:
- 8.8.8... | Mithlaj |
<p>I have installed microk8s, traefik and cert-manager. When I try to receive a letsencrypt certificate, a new pod for answering the challenge is created, but the request from the letsencryt server does not reach this pod. Instead, the request is forwarded to the pod that serves the website.</p>
<p>It looks like the in... | Peter | <p>Shouldn't this annotation be added to ingress?</p>
<pre><code>cert-manager.io/cluster-issuer=letsencrypt-production
</code></pre>
| Marco Brunet |
<p>I am new to k8's and trying to update storageClassName in a StatefulSet.(from default to default-t1 only change in the yaml)</p>
<p>I tried running <code>kubectl apply -f test.yaml</code></p>
<p>The only difference between 1st and 2nd Yaml(one using to apply update) is storageClassName: default-t1 instead of defau... | e.f.a. | <p>There's no easy way as far as I know but it's possible.</p>
<ol>
<li>Save your current StatefulSet configuration to yaml file:</li>
</ol>
<pre><code>kubectl get statefulset some-statefulset -o yaml > statefulset.yaml
</code></pre>
<ol start="2">
<li>Change <code>storageClassName</code> in <code>volumeClaimTemplat... | filst |
<p>We are trying to migrate Java service from java 11 and SpringBoot 2.7.1 to Java 17 and SpringBoot 3.0.6.</p>
<p>we are creating the docker image and deploying to AWS kubernates (1.24). with java 11 and SpringBoot 2.7.1, able to trigger email successfully but after upgrade, we are getting below error with the smtp h... | Vikneshwar Vikki | <p>You can use <code>Session</code> class and use <code>Transport.send()</code>. Below is my code for reference :</p>
<p>EmailConfig :</p>
<pre><code>@Configuration
public class EmailConfig {
@Value("${spring.mail.username}")
private String noReplyEmailId;
@Value("${spring.mail.password}&qu... | Dhruman Desai |
<p>I have deployed a pod with cpu/memory limit on the spec:</p>
<pre><code>resources:
requests:
cpu: 1
memory: 4Gi
</code></pre>
<p>but the limit looks different from <code>kubectl describe pod</code> command:</p>
<pre><code>Init Containers:
elastic-internal-init-filesystem:
... | Joey Yi Zhao | <p>Resources are per container, not per pod. Your spec has 2 containers, with resource request only for the second (non-init) container.</p>
<p>Your 'describe' output only shows the init container. Though actually, it doesn't seem to be the init container named in your spec.</p>
| Arfur Narf |
<p>I know there are many questions concerning this aspect... but until now I could not find any answers. I tried two images (Apache Solr and Neo4J). Tried different namespaces, clusterIP, edit /etc/hosts, ingress, tunnel, minikube ip and all my requests got no response.</p>
<p>I tried these images standalone in Docker ... | lordshark | <p>As mentioned in comments and in this <a href="https://stackoverflow.com/questions/40767164/expose-port-in-minikube">post</a>, the way you would expose app running in minikube via NodePort is my running the command:</p>
<p><code>minikube service <SERVICE_NAME> --url</code></p>
<p>Which prints out url you can pa... | mdobrucki |
<p>I have a spark executor pod, which when goes to OOMKilled status, I want to alert it. I am exporting spark metrics using prometheus to grafana.</p>
<p>I have tried some queries to</p>
<pre><code>kube_pod_container_status_last_terminated_reason{reason="OOMKilled"}
kube_pod_container_status_terminated_reason... | user9920500 | <p>As i know there is two metrics which allow you to monitor OOM.
The first one is used for tracking OOMKilled status of your main process/pid. If it breach the limit pod will be restarted with this status.</p>
<pre><code>kube_pod_container_status_last_terminated_reason{reason="OOMKilled"}
</code></pre>
<p>An... | Organ2 |
<p>Is it correct to say that a scaffolding in Helm Chart is a Chart based on another Chart with your own customization?</p>
<p>If that's correct why don't we just customize values.yaml instead? If we need to change the configuration why don't we write a new Chart instead?</p>
<p>what are the use cases for creating a sc... | lzy917 | <p><code>helm create xyz</code> just builds you a starting structure in whuch you can develop the chart needed for your <code>xyz</code> project. It has no relationship to any existing chart.</p>
<p>The use-case is 'programmer who prefers not to start with a blank sheet of paper'.</p>
| Arfur Narf |
<p>The following example would expose the services externally. So why is <code>NodePort</code>/<code>LB</code> allowed in this context, would not that be redundant?</p>
<pre><code> rules:
- host: lab.example.com
http:
paths:
- path: /service-root
backend:
serviceName: clusterip-svc
... | x300n | <p>Services are a way to define logical set of Pods and a policy to access them. The Pods are ephemeral resources, so Services make it possible to connect to them regardless of their IP addresses. They usually use selectors to do so. There are different types of Services in Kubernetes and these are the main differences... | mdobrucki |
<p>I’m running my POC java application inside the EKS cluster. Here the steps I followed to move my application into containerized application.</p>
<ol>
<li>Java application source code is checkout into my local workstation.</li>
<li>Executed the maven command to generate the package mvn package -DskipTests</li>
<li>As... | Gowmi | <p>That is the nature of a Deployment. When The pod finishes its task, the pod completes. But the Deployment has the purpose to keep up a certain number of pods (replicas) so it will recreate the pod again and again to fullfill its purpose. This is leading to your CrashLoopBackOff. I think maybe you should use a kubern... | pwoltschk |
<p>I am trying to update the eks add-on named "vpc-cni". This plugin, does the following:</p>
<p>"The CNI plugin allows Kubernetes Pods to have the same IP address as they do on the VPC network. More specifically, all containers inside the Pod share a network namespace, and they can communicate with each... | ambe5960 | <p>Work around: when deploying this addon in the AWS console, click on the "advanced options" in the first panel after specifying the version and the IAM role. At the very bottom is a button that can be selected to override conflicts and this allows the installation to succeed.</p>
| Dave Wagoner |
<p>My k8s pod gets terminated/crashed sometimes and restarts automatically. When I try to see the old log to debug for the crash, I get the below error. If terminated container not found, then how can I get the log and debug the crash in this case?</p>
<p>My pod has only one container inside it.</p>
<pre><code>/home/ra... | myquest9 sh | <p>I recommend you to use tool like LENS to have a GUI to have a clarity on what is going on in K8S cluster.Also you can use kubectl get events to know the history of events happened along with age of event,pod info , etc. It can help you to know for what reason the old container has been terminated.</p>
| Suresh Ganesan |
<p>need some recommendations. I have the redis servers deployed in K8s and they are without the password/authentication. I need to work on adding the passwords to the redis servers and at the same time make sure that to the clients/services using that redis servers also get it. Has anyone come across this use case? #re... | Batman 21 | <p>Hey for this purpose you should use a <strong>Kubernetes Secret</strong> that you mount into your redis container. It can be also mounted into different containers.</p>
<p>This would be my approach:</p>
<p>First, you'll need to enable authentication on your Redis servers. This can be done by modifying the <strong>re... | pwoltschk |
<p>On a minikube I have installed KEDA and managed to scale up/down a small service I have created using the Postgres scaler.</p>
<p>After a while, the scaler stopped working, and I don't understand why.</p>
<p>Here's the spec from the ScaledObject yaml:</p>
<pre><code>spec:
minReplicaCount: 0
maxReplicaCount: ... | D. Joe | <p>Uninstalling and installing KEDA in my cluster helped.</p>
<blockquote>
<p>kubectl delete -f <a href="https://github.com/kedacore/keda/releases/download/v2.9.0/keda-2.9.0.yaml" rel="nofollow noreferrer">https://github.com/kedacore/keda/releases/download/v2.9.0/keda-2.9.0.yaml</a></p>
</blockquote>
<blockquote>
<p>ku... | Jens Voorpyl |
<p>i try to run a mongodb within a kubernetes cluster secured with a keyFile. For this, i created a simple statefulset and a configmap, where i stored the keyfile:</p>
<pre><code>apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mongodb
spec:
serviceName: mongodb
replicas: 1
selector:
matchLabels:
... | MarM25 | <p>If anyone is still looking for a solution to this issue, I found one that does not use the init container.</p>
<p>Working with <strong>k8s 1.26</strong>,
I mounted the <strong>keyfile</strong> as a secret inside the pod with a volume and I set the <code>defaultMode</code> to <code>0o400</code>.</p>
<p>We have to put... | Flav |
<p>Hi got a YAML that seems valid to me but it does not work when applying it and I can't figure out what is wrong with it</p>
<p>error:</p>
<pre><code>unknown field "spec.template.spec.volumes[0].PersistentVolumeClaim"
</code></pre>
<p>kubeval deployment.yaml passes with no errors</p>
<pre><code>apiVersion: ... | Jester | <p>Note that <code>persistentVolumeClaim</code> should be lowercased and specified as a nested object under volumes.</p>
<pre><code>volumes:
- name: cache
persistentVolumeClaim:
claimName: app-pvc
</code></pre>
| pwoltschk |
<p>Ingress doesn't get a static ip. The static ip is global.</p>
<p>Ingress manifest:</p>
<pre><code> ~/temp cat stage-api-deleted-com-cert.yaml ✔
apiVersion: networking.k8s.io/v1
kind... | CY83R14N | <p>I'm not absolutely sure, but it looks like the <code>networking.gke.io/static-ip: "devstaticip"</code> annotation helps to get a static ip in my case.</p>
| CY83R14N |
<p>Im using the following code inside kubebuilder controller to read before update for k8s custom resource, im checking if the object exist if yes check if need to update, if not create it , as I need to use it in several places
I want to ask:</p>
<ul>
<li><p>if there is some helper that can help me to reduce this boil... | PeterSO | <p>you can use the controllerutil.CreateOrUpdate() function from the sigs.k8s.io/controller-runtime/pkg/controller/controllerutil package to reduce boilerplate code.</p>
<p>use controllerutil.CreateOrUpdate() function:</p>
<pre><code>if err := controllerutil.CreateOrUpdate(ctx, r.Client, &eCmp, func() error {
r... | Hari pootar |
<p>I have an application designed to run as a K8s application, and it imports some dependencies (that I don't own) that run <code>exec.Cmd</code>s. This is fine, except I want to capture those logs. For some reason, when I do:</p>
<pre><code>r := bufio.NewReader(os.Stdout)
...
line, err := r.ReadString('\n')
</code><... | jayjyli | <p>Generally, <code>stdin</code> is a read-only stream for retrieving input written to your program, while <code>stdout</code> is a write-only stream for sending output written by your program. <em>In other words, nobody can read from /dev/stdout, except Chuck Norris.</em></p>
<p>By default, <code>stdout</code> is &quo... | Gerald Mayr |
<p>I define a CoucbaseBackupRestore resource for my kubernetes cluster. Managed with flux and kustomize (gitops)
The restore goes well. But when it is finished it starts another restore.
I want it to run only once.
Is it possible to tell kubernetes to not recreate a pod when the first one succeeds?</p>
<p>I have to com... | Fundhor | <p>Currently, the Operator will garbage collect successful restore jobs. The expected behaviour is that the restore yaml would only be applied when a restore job is required.</p>
<p>This causes repeat creation in workflows like this; however, we've opened a ticket to track this request! <a href="https://issues.couchbas... | Alex |
<p>I have Kubernetes client version 25.3.0. With this I am able to execute below code</p>
<pre class="lang-py prettyprint-override"><code>import kubernetes
from kubernetes import client
from kubernetes import kubernetes
print('Hello, world!')
</code></pre>
<p>I have requirement to upgrade Kubernetes client beca... | HotDev | <p>The issue is with the line, <code>from kubernetes import kubernetes</code>. The format <code>from x import y</code> is used to explicitly import a module <code>x.y</code> in package <code>x</code>. It does not seem that the <code>kubernetes</code> package contains a <code>kubernetes.kubernetes</code> module. You can... | Joshua Shew |
<p>I currently have something like this in my kubeconfig</p>
<pre><code> exec:
apiVersion: client.authentication.k8s.io/v1
command: PATH_DETERMINED_VIA_BINARY/token_generator
args:
- --ACCESS_TOKEN
interactiveMode: Never
provideClusterInfo: false
</code></pre>
<p>My question is , i... | James Franco | <p>How I understand the problem is that
you want the output of one command to run as part of another command. In Linux you can use backticks (`) for this. e.g if you want to loop through the item in a particular location. You would do:</p>
<pre><code>for i in `ls`;…
</code></pre>
<p>So in theory something like this wil... | user21895277 |
<p>can someone help?
I am trying to inject a helm value on a config map, but it breaks the format. If I use the value directly instead of .Values, it works fine.</p>
<p>What I have:</p>
<pre><code>data:
application.instanceLabelKey: argocd.argoproj.io/instance
oidc.config: |
name: Okta
issuer: https://mycom... | Stargazer | <p>it should be with the values.yaml . it worked for me in both ways :</p>
<ol>
<li>using the values in values.yaml</li>
</ol>
<hr />
<p>Values.yaml:</p>
<pre><code>okta:
clientSecret: test1233
clientID: testnew
</code></pre>
<p>configmap</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
name: test-config
... | jins |
<p>I would like to have an environment variable that its value is a JSON String, that is built from the <code>ExternalSecrets</code> variables.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: my-app-external-secret
spec:
refreshInter... | Johnnes Souza | <p>To build an environment variable in Kubernetes using a JSON string created from ExternalSecrets variables, use Kubernetes Jobs or CronJobs to update the environment variable with the needed JSON data on a regular basis. First, write a shell script that searches ExternalSecrets and creates the required JSON format. V... | ooxvyd |
<p>In a Azure AKS kubernetes cluster, after a cluster version upgrade the nodepool nodes, I have a PV that has this node affinity:</p>
<pre><code>Node Affinity:
Required Terms:
Term 0: failure-domain.beta.kubernetes.io/region in [westeurope]
</code></pre>
<p>The nodes don't have the label so the Deployment... | icordoba | <p>We had the same problem. How we resolved it:</p>
<ol>
<li>Copy output from "kubectl get pvc" to get the link between the pvc and the pv.</li>
<li>Locate the disk in azure portal and create a snapshot of the disk. (In the MC_ resource group to the aks</li>
<li>Edit deployment in kubernetes and set replicaco... | user21907706 |
<p>Related to <a href="https://stackoverflow.com/q/66288565/3288890">Duplicated env variable names in pod definition, what is the precedence rule to determine the final value?</a></p>
<p>I have a deployment spec with a repeated env name, see below:</p>
<pre><code>containers:
- name: c1
...
env:
- name: DU... | Fran | <p>Have recently tested this -- in my case the precedence is reversed. Am not sure why it is the case and apparently not so for the other responders but, in yaml:</p>
<pre><code>env:
- name: key1
value: value1
- name: key1
value: value2
</code></pre>
<p>is rendering</p>
<pre><code>containers:
- env:
- name: ... | KBlanko |
<p>I can create a PostgresSQL deployment in Kubernetes with volumes with no problems. The question I have is how to create the database tables.</p>
<p>I can easily exec in the pod and create the tables but I want it to be automatically createded.</p>
<p>I don't want to build in into the docker image as a want a gener... | Billy Slater | <p>this may help (here I have added configmap, persistent volume, persistent volume-claim, and Postgres deployment yaml. This yaml will automatically create a table named <code>users</code> in the Postgres database inside the Postgres-container. Thanks</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
name: pos... | Ashwin Singh |
<p>I am trying to send a curl request to a Kubernetes ClusterType service. Is there any way to perform curl requests to service?</p>
<p>I am deploying an application with Blue/Green deployment. So here need to verify the Blue version is properly working or not. So decide to send a curl request to the blue version. When... | Amjed saleel | <p>ClusterIP makes the Service only reachable from within the cluster. This is the default ServiceType. You can read more information about services <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">here</a>.</p>
<p>As the command in the first answer doesn't work, I'm ... | mozello |
<p>I'm having trouble understanding what pod Eviction means mechanically in terms of K8s's actions -- what exactly does K8s do with the pod during eviction?</p>
<p>Specifically, my main question is this:
Under what conditions is an Evicted pod actually deleted from ETCD?
Under what conditions is an Evicted pod just kil... | Dmitri Gekhtman | <p>I'm also confused by this lately. Here are some findings after a while of digging in the source code and the docs.</p>
<p>'Eviction' here actually means two slightly different concepts, which are both documented in the official docs: <a href="https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-evic... | devzbw |
<p>I know that the moment the pod receives a deletion request, it is deleted from the service endpoint and no longer receives the request. However, I'm not sure if the pod can return a response to a request it received just before it was deleted from the service endpoint.
If the pod IP is missing from the service's end... | HHJ | <p>There are many reasons why Kubernetes might terminate a healthy container (for example, node drain, termination due to lack of resources on the node, rolling update).</p>
<h4>Once Kubernetes has decided to terminate a Pod, a series of events takes place:</h4>
<h4>1 - Pod is set to the “Terminating” State and removed... | mozello |
<p>The <a href="https://cloud.google.com/kubernetes-engine/pricing#cluster_management_fee_and_free_tier" rel="nofollow noreferrer">documentation</a> says</p>
<blockquote>
<p>The cluster management fee of $0.10 per cluster per hour (charged in 1 second increments) applies to all GKE clusters irrespective of the mode of ... | Mikolaj | <p>Seems to me your issue requires billing specialists for GCP. You may check this link for more details and assistance.[1]</p>
<p>[1[</p>
<p><a href="https://cloud.google.com/support/billing#contact-billing-support" rel="nofollow noreferrer">https://cloud.google.com/support/billing#contact-billing-support</a></p>
| Ray John Navarro |
<p>I'm using minikube version: v1.25.1, win10, k8s version 1.22</p>
<p>There is 1 node, 2 pods on it: <code>main</code> and <code>front</code>, 1 service - <code>svc-main</code>.</p>
<p>I'm trying to exec into front and call main thru service and see some msg confirming connection is ok.</p>
<p>main.yaml:</p>
<pre><cod... | ERJAN | <p>The problem is when you are creating a Kubernetes pod using your yaml file, you are overwriting the default Entrypoint and Cmd defined in nginx docker image with your custom command and args:</p>
<pre class="lang-yaml prettyprint-override"><code>command: ["/bin/sh","-c"]
args: ["while true; ... | mozello |
<p>I want to calculate the availability/uptime percentage of ephemeral pods runners that belong to GitHub Action runners.</p>
<p>How should promql query look like to calculate the uptime percentage of ephemeral runners/pods in kubernetes?</p>
| semural | <p>There are a lot to consider in order for you to achieve your goals in monitoring the availability or uptime of ephemeral pod runners for GitHub Action runners. To start off, you need a tool to do this like Grafana. This will help you monitor and visualize Kubernetes metrics. Also you need to define the criteria tha... | Ray John Navarro |
<p>I have deployed ambassador edge stack and I am using hosts and mapping resources to route my traffic. I want to implement the mapping in such a way that if there is any double slash in the path, using regex (or any other available way) to remove one slash from it.
For example, if client request <code>https://a.test.... | Susanta Gautam | <p>There is the <a href="https://www.getambassador.io/docs/emissary/1.14/topics/running/ambassador/#the-module-resource" rel="nofollow noreferrer">Module Resource</a> for emissary ingress.</p>
<blockquote>
<p>If present, the Module defines system-wide configuration. This module can be applied to any Kubernetes service ... | mozello |
<p>Do I understand correctly that Kafka Streams state store is co-located with the KS application instance? For example if my KS application is running in a Kubernetes pod, the state store is located in the same pod? What state store storage is better to use in Kubernetes - RocksDB or in-memory? How can the type of the... | AndCode | <p>This depends on your use case - sometimes you can accept an in-memory store when you have a small topic. However in most cases you'll default to a persistent stores. To declare one you'd do:</p>
<pre><code>streamsBuilder.addStateStore(
Stores.keyValueStoreBuilder(
Stores.persistentKey... | Kacper Roszczyna |
<p>For example, guestbook-ui service and bbs-ui service are installed in k8s.</p>
<p>And I want to map guestbook-ui only to the 8080 listener port and bbs-ui service to the 8081 listener port to the pre-generated k8s ALB ingress.</p>
<p>However, if you write and store the following in spec, all guestbook-ui and bbs-ui ... | Junseok Lee | <p>There is a feature to automatically merge multiple ingress rules for all ingresses in the same <strong>ingress group</strong>. The AWS ALB ingress controller supports them with a single ALB.</p>
<pre class="lang-yaml prettyprint-override"><code>metadata:
annotations:
alb.ingress.kubernetes.io/group.name: my-gr... | mozello |
<p>I want to log activity of users in k8s. I want to log each users that exec commands in pods. for example if a user has username 'user01' in k8s (or openshift) and executes 'whoami' in a pod, I want to log this activity with username 'user01'.</p>
<p>I explored Tetragon and Falco. these tools cannot give me k8s usern... | Michael Cab | <p>Hey the pod is the smalles unit in kubernetes. The Container that the pod is wrapping does not know about K8s It only have its own users and whatever you configure on application level.</p>
<p>I assume you want to know which k8s user does what, specifically on the pod it he uses <em>kubeclt exec bla -- /bin/sh</em> ... | pwoltschk |
<p>Concerning the <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale" rel="nofollow noreferrer">Kubernetes Horizontal Autoscaler</a>, are there any metrics related to the number of changes between certain time periods?</p>
| Hegemon | <p>Kubernetes does not provide such metrics, but you can get <code>events</code> for a k8s resource.</p>
<blockquote>
<p>An event in Kubernetes is an object in the framework that is automatically generated in response to changes with other resources—like nodes, pods, or containers.</p>
</blockquote>
<p>The simplest way... | mozello |
<p>I'm creating a secret with below yaml. My application needs the username and password in plaintext</p>
<pre><code>apiVersion: v1
stringData:
password: "secret"
username: "kafka"
kind: Secret
metadata:
name: kafka-secret
namespace: kafka
type: Opaque
</code></pre>
<p>However when I apply t... | DeirdreRodgers | <p>yes this is the nature of a Secret, you can think of a Secret as an encoded configmap all values in the secret should be base64 encoded. If you create a secret e.g. via</p>
<p><code>kubectl create secret generic mysecret --from-literal=password=mypassword123</code></p>
<p>the password will be always base64 encoded!<... | pwoltschk |
<p>I have a K8s service defined as:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
labels:
name: myapp
name: myapp
namespace: myapps
spec:
ports:
- name: ui
port: 8081
protocol: TCP
targetPort: 8081
selector:
my-app: myapp
my-deployment-type: jobmanager
type: Cluste... | Ace McCloud | <blockquote>
<p>Is there a way to ensure that the service will just choose the new app pods? i.e Have a selector to also depend on the "Start Time" of the pods apart from the selector?</p>
</blockquote>
<p>There is no such feature in Kubernetes to filter a pod start time in service selector block.</p>
<p>The ... | mozello |
<p>What is the preferred Kubernetes storageClass for a PersistentVolume used by a Postgresql database? Which factors should go into consideration choosing the storageClass when I have the choice between S3 (Minio), NFS and HostPath?</p>
| mxcd | <p>When you choose a storage option for Postgresql in Kubernetes, you should take into account the following:</p>
<ol>
<li><p><strong>NFS / Minio</strong> is not the preferred storage for databases, if your application is latency-sensitive. A common use case is a download folder or a logging/backup folder.<br />
But it... | mozello |
<p>I am somewhat brand-new to Kubernetes.</p>
<p>I have a pod that keeps restarting, and my error is:</p>
<pre><code> at KibanaTransport.request (/usr/share/kibana/node_modules/@elastic/transport/lib/Transport.js:524:31)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process... | OreuhNation | <p>It's quite hard todo remote diagnostics with that amount of information. Here are basically two things that disturb me. Your Kubernetes pod running Kibana is encountering issues and keeps restarting due to errors related to communication with Elasticsearch.</p>
<p><strong>1:</strong> The "Readiness probe failed... | pwoltschk |
<p>I have an NGINX Ingress sitting in front of a few nodejs services. I want to restrict the path /graphql to only POST and only content-type=application/json</p>
<p>I've added the following annotation, which seems to work in terms of the restriction, but valid requests now return a 404</p>
<pre><code> nginx.ingress... | Ben Gannaway | <p>I think the problem is that your <code>location</code> {} block doesn't have an upstream like the regular paths defined in the nginx ingress.
Get the nginx ingress configuration from <code>ingress-nginx-controller</code> pod:</p>
<pre><code>$ kubectl exec -n your-ingress-nginx-namespace ingress-nginx-controller-xxx-... | mozello |
<p>One of our containers is using ephemeral storage but we don't know why. The app running in the container shouldn't be writing anything to the disk.</p>
<p>We set the storage limit to 20MB but it's still being evicted. We could increase the limit but this seems like a bandaid fix.</p>
<p>We're not sure what or where ... | Jessie | <p>Adding details to the topic.</p>
<blockquote>
<p>Pods use ephemeral local storage for scratch space, caching, and logs.
<strong>Pods can be evicted due to other pods filling the local storage, after which new pods are not admitted until sufficient storage has been reclaimed.</strong></p>
</blockquote>
<p>The kubelet... | mozello |
<p>When applying the yaml file to the ingress services a load balancer is created. I pointed my DNS domain to that load balancer IP and it reaches the nginx server. However when routing to <a href="https://www.example.com/api/users/" rel="nofollow noreferrer">https://www.example.com/api/users/</a> or <a href="https://w... | Manel | <p>Based on the example you provided, I would suggest, as a test, to update the first path definition to the following:</p>
<ul>
<li>path: /api/users(/|$)(.*)</li>
</ul>
<p>...and assuming the Nginx Ingress Controller is already configured to terminate TLS, try reaching <a href="https://www.example.com/api/users/" rel=... | Michael See |
<p>I have an openshift namespace (<code>SomeNamespace</code>), in that namespace I have several pods.</p>
<p>I have a route associated with that namespace (<code>SomeRoute</code>).</p>
<p>In one of pods I have my spring application. It has REST controllers.</p>
<p>I want to send message to that REST controller, how can... | Anton | <p><strong>Routes</strong> are an <strong>OpenShift-specific</strong> way of exposing a Service outside the cluster.
But, if you are developing an app that will be deployed onto <strong>OpenShift and Kubernetes</strong>, then you should use <strong>Kubernetes Ingress</strong> objects.</p>
<p>Using Ingress means that yo... | mozello |
<p>I'm quite confused between ECK and ELK. AFIK ELK requires logstash for reading the logs and whether the logstash required for ECK also or only filebeat or metric beat is enough to get logs. Filebeat replaced logstash in case of ECK?</p>
| ilavarasan M | <p>I can understand your confusion between ECK and ELK. Let me clarify the differences between them and how they handle log ingestion.</p>
<ol>
<li>ELK Stack:</li>
</ol>
<ul>
<li>ELK stands for Elasticsearch, Logstash, and Kibana. It's a popular open-source stack used for log analysis and visualization.</li>
<li>Elasti... | RizwanAli72 |
<p><strong>Context:</strong>
[Regarding cost reduction for compute]. In AKS cluster, recently observed that compute resources are under-utilised and so my plan is:</p>
<ol>
<li><p>To create a new node pool(with lower cpu and memory, and so lower cost basically) and attach to the same AKS cluster.
And then</p>
</li>
<li... | Nin | <p>You are right! Kubernetes will take care of detaching and attaching PV and PVC considering all this activity will be within single Kubernetes cluster only. You don’t need to backup.</p>
<p>(If the response was helpful please don't forget to upvote and/or accept as answer, thank you)</p>
| Prrudram-MSFT |
<p>I try to deploy mysql container in Kubernetes cluster (minikube) using the <a href="https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/" rel="nofollow noreferrer">example</a>.</p>
<p>I changed only a following part:</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadat... | CodeGrinder | <p>Exit code 137 typically means that the process was terminated by a signal, and in Kubernetes, signal 137 corresponds to SIGKILL, which is often used to forcefully terminate a process.</p>
<p>There are a few common reasons why a MySQL container might be crashing like this:</p>
<p><strong>Resource Constraints:</strong... | arnoldschweizer |
<p>I am trying to manipulate a kubernetes yaml file with python's pyyaml. I'm trying to add some annotations, but when I dump them the output is empty.</p>
<p>Add <code>key</code>,<code>val</code> in a <code>Deployment</code>:</p>
<pre class="lang-py prettyprint-override"><code>file_content = ""
try:
with... | sctx | <p>I found a solution. It seems that modifying the iterator returned by the <code>yaml.load</code> function results in an empty structure, so empty results.</p>
<p>I copy each element in the operator in a new structure and then apply edits to it.</p>
<p>The following works properly</p>
<pre class="lang-py prettyprint-o... | sctx |
<p>After upgrading the jenkins plugin Kubernetes Client to version 1.30.3 (also for 1.31.1) I get the following exceptions in the logs of jenkins when I start a build:</p>
<pre><code>Timer task org.csanchez.jenkins.plugins.kubernetes.KubernetesClientProvider$UpdateConnectionCount@2c16d367 failed
java.lang.NoSuchMethodE... | fuechsle | <p>Downgrade the plugin to kubernetes-client-api:5.10.1-171.vaa0774fb8c20. The latest one has the compatibility issue as of now.</p>
<p><strong>new info</strong>: The issue is now solved with upgrading the <strong>Kubernetes plugin</strong> to version: 1.31.2 <a href="https://issues.jenkins.io/browse/JENKINS-67483" rel... | Nitin Kalra |
<p>I am using Prometheus 2.33 version.
The following query does not work.</p>
<blockquote>
<p>kubelet_volume_stats_available_bytes</p>
</blockquote>
<blockquote>
<p>kubelet_volume_stats_capacity_bytes</p>
</blockquote>
<p>The following query is used to monitor the DISK usage of the POD.</p>
<blockquote>
<p>container_fs... | 김태우 | <p>For PVC, Kubernetes exposes these metrics to Prometheus, you can use them to monitor a persistent volume's usage:</p>
<pre class="lang-yaml prettyprint-override"><code>kube_persistentvolume_capacity_bytes
kube_persistentvolumeclaim_resource_requests_storage_bytes
</code></pre>
<p><strong>EDIT</strong>:
These metric... | anarxz |
<p>I want to set wildcard subdomain for my project, using k8s, nginx ingress controller, helm chart:</p>
<p>In <code>ingress.yaml</code> file:</p>
<pre><code>...
rules:
- host: {{ .Values.ingress.host }}
...
</code></pre>
<p>In <code>values.yaml</code> file, I change host <code>example.local</code> to <code>*.example... | Phan Ly Huynh | <p>YAML treats strings starting with asterisk in a special way - that's why the hostname with wildcards like <code>*.example.local</code> breaks the ingress on <code>helm install</code>.
In order to be recognized as strings, the values in <code>ingress.yaml</code> file should be quoted with <code>" "</code>... | anarxz |
<p>I have a multi-node cluster setup. There are Kubernetes network policies defined for the pods in the cluster. I can access the services or pods using their clusterIP/podIP only from the node where the pod resides. For services with multiple pods, I cannot access the service from the node at all (I guess when the ser... | Parvathy Mohan | <p>No, it is not the expected behavior for Kubernetes. Pods should be accessible for all the nodes inside the same cluster through their internal IPs. <code>ClusterIP</code> service exposes the service on a cluster-internal IP and making it reachable from within the cluster - it is basically set by default for all the... | anarxz |
<p>I am using kubernetes (by windows 10 - docker desktop).</p>
<p>I am using mysql, that is running by helm 3 (loaded from bitnami repository).</p>
<p>I am creating another application.
For now, I am testing on docker (not in kubernetes yet).</p>
<p>Everything is fine, but when trying to connect the database from my pr... | Eitan | <p>Docker containers are isolated from other containers and the external network by default. There are several options to establish connection between Docker containers:</p>
<ul>
<li><p>Docker sets up a default <code>bridge</code> network automatically, through which the communication is possible between containers and... | anarxz |
<p>We had a major outage when both our container registry and the entire K8S cluster lost power. When the cluster recovered faster than the container registry, my pod (part of a statefulset) is stuck in <code>Error: ImagePullBackOff</code>.</p>
<p>Is there a config setting to retry downloading the image from the CR pe... | ucipass | <p>The <code>BackOff</code> part in <code>ImagePullBackOff</code> status means that Kubernetes is keep trying to pull the image from the registry, with an exponential back-off delay (10s, 20s, 40s, …). The delay between each attempt is increased until it reaches a compiled-in limit of 300 seconds (5 minutes) - more ... | anarxz |
<p>I have roughly 20 cronjobs in Kubernetes that handle various tasks at specific time intervals. Currently there's a fair bit of overlap causing usage of resources to spike, opposed to the usage graph being more flat.</p>
<p>Below is a rough example of one of my cronjobs:</p>
<pre class="lang-yaml prettyprint-override... | Damian Jacobs | <p><strong>Posting my comment as the answer for better visibility.</strong></p>
<p>As far as I understood, all your jobs are configured separately, you can set specific schedule for each of them, e.g. for job 1 that starts at 12:00 with next run at 12:20 it can set up like this:</p>
<pre><code>spec:
schedule: "0... | anarxz |
<p>I have AWS EKS cluster with only Fargate profile, no Node Groups.
Is it possible to enable HPA in this case? I tried to enable metric server as described <a href="https://docs.aws.amazon.com/eks/latest/userguide/metrics-server.html" rel="noreferrer">here</a> but pod creation fails with error</p>
<pre><code>0/4 nodes... | yurybubnov | <p>You need to create fargate profile for this.
If you are deploying it into another namespace then you need to create a fargate profile for that namespace.</p>
| Vikas |
<p>I'm writing as I've encountered an issue that doesn't seem to get resolved, would value the community's help.</p>
<p>I'm trying to push an image to a local registry I deployed on port 5000.</p>
<p>When I use this command <code>docker push localhost:5000/explorecalifornia.com</code> to push the image to my local regi... | keshinpoint | <p>I use a work-around for this error and it is as below:</p>
<p>Firstly, tag the images using the localhost ip instead, ie</p>
<pre><code>docker tag imagename 127.0.0.1:5000/imagename
</code></pre>
<p>and,</p>
<pre><code>docker push 127.0.0.1:5000/imagename
</code></pre>
<p>I hope this works for you as well.</p>
| sonierk88 |
<p>First, I've created a GKE Autopilot cluster using the GCP GUI Console in my browser, with default settings so I tried applying my deployments with <code>kubectl apply -f thisfile.yaml</code>:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 3
selector:
matchLabels:... | deniable_encryption | <p>I can confirm this is an ongoing issue. We have a support ticket opened with GCP to investigate the same behaviour.</p>
<p>The first deployment works fine but the deployment of a new revision fails. Pods gets created and deleted quickly (a few per second) and the ReplicaSets get to the hundreds pretty fast.</p>
<p>F... | Positronico |
<p>We are getting logs that calls to k8s are being made, despite our cluster being private, as well as being behind the gcp firewall with a rule that blocks all ingress except IAP IPs (and ICMP). What am I missing?</p>
<pre><code>"protoPayload":{
"@type":"type.googleapis.com/google.cloud.aud... | Pat | <p>The private clusters have a control plane private endpoint and a control plane public endpoint and you can choose to disable the control plane public endpoint, this is the highest level of restricted access. So you can manage the cluster with the private endpoint internal IP address with tools like kubectl and any ... | Leo |
<p>I want to my backend service which is deployed on kubernetes service to access using ingress with path /sso-dev/, for that i have deployed my service on kubernetes container the deployment, service and ingress manifest is mentioned below, but while accessing the ingress load balancer api with path /sso-dev/ it throw... | Aman | <p>You need to change the pathType to Prefix as follows, in your ingress:</p>
<pre><code>pathType: Prefix
</code></pre>
<p>Because I noted that you are using the <code>pathType: ImplementationSpecific</code> . With this value, the matching depends on the <code>IngressClass</code>, so I think for your case the <code>pa... | Leo |
<p>We have setup a GKE cluster using Terraform with private and shared networking:</p>
<p>Network configuration:</p>
<pre><code>resource "google_compute_subnetwork" "int_kube02" {
name = "int-kube02"
region = var.region
project = "infrastructure"
net... | Eetae0x | <p>I have been missing the peering configuration documented here:
<a href="https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#cp-on-prem-routing" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters#cp-on-prem-routing</a></p>
<pre><code>resource "go... | Eetae0x |
<p>I'm experimenting with kubernetes and a minio deployment. I have a k3s 4 node cluster, each one with 4 50GB disk. Following the instructions <a href="https://docs.min.io/minio/k8s/tenant-management/deploy-minio-tenant-using-commandline.html" rel="nofollow noreferrer">here</a> I have done this:</p>
<ol>
<li><p>First ... | k.Cyborg | <p>Guided by information at the <a href="https://docs.min.io/docs/how-to-secure-access-to-minio-server-with-tls.html" rel="nofollow noreferrer">Minio documentation</a>. You have to generate a public certificate. First of all generate a private key use command:</p>
<pre><code>certtool.exe --generate-privkey --outfile Na... | Mykola |
<p>I'm running PowerDNS recursor inside my k8s cluster. My python script is on a different <code>pod</code> that is doing rdns to my <code>powerdns</code> <code>rescursor</code> app. I have my hpa <code>Max replica</code> set to <code>8</code>. However, I do not think the load is the problem here. I'm unsure what to do... | thevoipman | <p>The error code 12 indicates that the PowerDNS recursor did not receive a response from any of the authoritative servers for the queried domain within the configured timeout. This could be due to network issues, firewall rules, rate limiting, or misconfiguration of the recursor or the authoritative servers.</p>
<h2>P... | Ahmed Mohamed |
<p>I faced this problem since yesterday, no problems before.<br />
My environment is</p>
<ul>
<li>Windows 11</li>
<li>Docker Desktop 4.4.4</li>
<li>minikube 1.25.1</li>
<li>kubernetes-cli 1.23.3</li>
</ul>
<h1>Reproduce</h1>
<h2>1. Start minikube and create cluster</h2>
<pre><code>minikube start
</code></pre>
<h2>2. Ch... | akrsum | <p>This seems to be a bug introduced with 1.25.0 version of minikube: <a href="https://github.com/kubernetes/minikube/issues/13503" rel="nofollow noreferrer">https://github.com/kubernetes/minikube/issues/13503</a> .
A PR to revert the changes introducing the bug is already open: <a href="https://github.com/kubernetes/m... | CdrBlair |
<p>I would like to install a helm release using argocd, i defined a helm app declaratively like the following :</p>
<pre><code>apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: moon
namespace: argocd
spec:
project: aerokube
source:
chart: moon2
repoURL: https://charts.aerokube.com/
... | Mohamed | <p>Cleanest way to achieve what you want is using the remote chart as dependency:</p>
<p>Chart.yaml</p>
<pre><code>name: mychartname
version: 1.0.0
apiVersion: v2
dependencies:
- name: moon2
version: "2.4.0"
repository: "https://charts.aerokube.com/"
</code></pre>
<p>And overriding its val... | HiroCereal |
<p>Just finished reading Nigel Poulton's <strong>The Kubernetes Book</strong>. I'm left with the question of whether or not a Deployment can specify multiple ReplicaSets.</p>
<p>When I think Deployment, I think of it in the traditional sense of an entire application being deployed. Or is there meant to be a Deployment... | Kermit | <p>The replica sets can be multiple up to a limit of 10 based on the number of updates that have been done using deployment. But only one <code>replicaSet</code> (the latest one) should be showing the number of pods; all other older sets should be showing <code>0</code>.</p>
<p>We can set <code>revisionHistoryLimit</co... | mahesh kumar |
<p>I use ingress-nginx with Helm Chart. I used to have the problem, that when I would upload a file (50MB) that I would get the error 413 Request Entity Too Large nginx.</p>
<p>So I changed the proxy-body-size value in my values.yaml file to 150m, so I should now be able to upload my file.
But now I get the error "... | Alex | <p>So it turns out the Application wich had the error, had another reverse Proxy infront of it (wich uses Lua and Openresty for oauth registration).
The Proxy-body-size attribute needed to be raised there to. After that the File upload worked</p>
| Alex |
<p>i wan't to send pod log to ELK, buat after deploying fluentd i get Error, i got from tutorial Official Fluentd documentation</p>
<p>EKS Version 1.22</p>
<p>i put Suppress_Type_Name On, it's not solved this issue</p>
<pre><code>[2022/06/20 16:23:07] [error] [output:es:es.0] HTTP status=400 URI=/_bulk, response:
{&quo... | Juan Daniel | <p>I was able to resolve the issue by these 3 steps,</p>
<p>step 1. You need to update your fluentbit image to latest</p>
<blockquote>
<pre><code> image: fluent/fluent-bit:2.1.1
</code></pre>
</blockquote>
<p>You can get the deployment file from <a href="https://docs.fluentbit.io/manual/v/1.5/installation/kubernetes... | Sebinn Sebastian |
<p>I installed aws-load-balancer-controller on new EKS cluster (version v1.21.5-eks-bc4871b).</p>
<p>I installed by this guide <a href="https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/deploy/installation/" rel="noreferrer">https://kubernetes-sigs.github.io/aws-load-balancer-controller/v2.3/deploy/in... | yershalom | <p>In case it might help others - I also had the original issue using fargate profile and worker-node for core-dns. The solution for me I found in another place was just adding</p>
<pre><code>node_security_group_additional_rules = {
ingress_allow_access_from_control_plane = {
type = "... | Emo |
<p>We have a requirement to connect a K8s POD to an Azure VPN Gateway in a secure manner. This is what our network topology is:</p>
<p><a href="https://i.stack.imgur.com/sH8cx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sH8cx.png" alt="enter image description here" /></a></p>
<p>Firstly is this p... | Andy B | <p>I tried to reproduce the same in my environment I have created a virtual network gateway vnet local network gateway like below:</p>
<p><img src="https://i.stack.imgur.com/z2Ddu.png" alt="enter image description here" /></p>
<p>In virtual network added gateway subnet like below:</p>
<p><img src="https://i.stack.imgur... | Imran |
<p>I have a service principal which is an Owner on the subscription that I am using to create an Azure Kubernetes Service cluster as part of a script. I want my cluster to use:</p>
<pre><code>Kubernetes RBAC --> enable
AKS-managed AAD --> enable
Local accounts --> disabled
</code></pre>
<p>I would like the sa... | floaty39 | <p><em><strong>I tried to reproduce the same in my environment and got the results as below:</strong></em></p>
<p>To assign Azure Kubernetes Service RBAC Cluster Admin to service principal you can make use of below cli command:</p>
<pre><code>az role assignment create --assignee <appId> --scope <resourceScope&... | Imran |
<p>I need to add RBAC to my AKS, but when I go to Azure portal it says that it's a creation operation and that it's not possible to update it afterwards.</p>
<p>Do I need to tear down the whole cluster and create a new one with RBAC enabled to make use of this feature?</p>
<p>It's an ongoing project in production, so f... | Domenico | <p><em><strong>I tried to reproduce the same in my environment I got the results successfully like below:</strong></em></p>
<p>It is possible to add RBAC enabled After creating a Kubernetes cluster:</p>
<p><em><strong>In your Kubernetes cluster -> under setting, cluster configuration -> choose azure authenticatio... | Imran |
<p>I am trying to update my Azure Kubernetes Service (AKS) cluster with the following command:</p>
<pre><code>az aks upgrade \
--resource-group myResourceGroup \
--name myAKSCluster \
--kubernetes-version KUBERNETES_VERSION
</code></pre>
<p>This results in the following response:</p>
<blockquote>
<p>(Author... | Jens Voorpyl | <p>Created Kubernetes cluster with 1.24 version when I run the same command got the same error:</p>
<pre class="lang-yaml prettyprint-override"><code>az aks upgrade \
--resource-group myResourceGroup \
--name myAKSCluster \
--kubernetes-version KUBERNETES_VERSION
</code></pre>
<p><a href="https://i.stack.im... | Imran |
<p>Is there a method to define rule priority within the Azure Application Gateway?</p>
<p>I've defined an ingress object in my Kubernetes cluster as follows:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
annotations:
appgw.ingress.kubernetes.io/rule-priority: "100&qu... | Metro | <p>I compared with your list <a href="https://azure.github.io/application-gateway-kubernetes-ingress/annotations/" rel="nofollow noreferrer">annotation</a>, even as per <a href="https://learn.microsoft.com/en-us/azure/application-gateway/ingress-controller-annotations#rewrite-rule-set" rel="nofollow noreferrer">MsDoc</... | Imran |
<p>I am wondering if it is possible to configure the “public access source allowlist” from CDK. I can see and manage this in the console under the networking tab, but can’t find anything in <a href="https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_eks.Cluster.html" rel="nofollow noreferrer">the CDK docs</a> ... | James Kelleher | <p>In general EKS has two relevant security groups:</p>
<ol>
<li><p>The one used by nodes, which AWS calls "cluster security group". It's setup automatically by EKS. You shouldn't need to mess with it unless you want (a) more restrictive rules the defaults (b) open your nodes to maintenance taks (e.g.: ssh ac... | pid-1 |
<p>After a <strong>mongodump</strong> I am trying to restore using <strong>mongorestore</strong>.</p>
<p>It works locally in seconds. However, when I <strong>kubectl exec -it</strong> into the pod of the primary mongodb node and run the same command it gets stuck and endlessly repeats the line with the same progress an... | veste | <p>I found my answer here:
<a href="https://stackoverflow.com/a/41352269/18358598">https://stackoverflow.com/a/41352269/18358598</a></p>
<p><code>--writeConcern '{w:0}'</code>
works.</p>
| veste |
<p>I have deployed a Prometheus-operator on the k8s cluster.
Everything works well but I want to monitor MySQL pods that are in another namespace.
I create mysqld-exporter pod and svc for it in MariaDB namespace and a servicemonitor for it in the monitoring namespace.
I check all the items which are in this <a href="ht... | mona moghadampanah | <p>I checked the Prometheus pod logs, and its error was :</p>
<blockquote>
<p>pods is forbidden: User "system:serviceaccount:monitoring:prometheus-k8s" cannot list resource</p>
</blockquote>
<p>so I search for this error and find the answer in <a href="https://github.com/prometheus-operator/kube-prometheus/is... | mona moghadampanah |
<p>I have an AWS EKS cluster running in a custom VPC with 2 public and 2 private subnets. The node groups (for my backend) run in the 2 private subnets so they can't be accessed directly.</p>
<p>I would like to create an API Gateway which exposes the microservices in the node group so my front-end and third party softw... | Casperca | <p>You need to use API Gateway private integrations to expose services running in EKS using NLB. Please check the below article for overall solution .</p>
<p><a href="https://aws.amazon.com/blogs/containers/integrate-amazon-api-gateway-with-amazon-eks/" rel="nofollow noreferrer">https://aws.amazon.com/blogs/containers... | Manmohan Mittal |
<p>Ingress is not forwarding traffic to pods.
Application is deployed on Azure Internal network.
I can access app successfully using pod Ip and port but when trying Ingress IP/ Host I am getting 404 not found. I do not see any error in Ingress logs.
Bellow are my config files.
Please help me if I am missing anything or... | megha | <p>You have mentioned the wrong service name under the ingress definition. Service name should be aks-helloworld-one as per the service definition.</p>
| Manmohan Mittal |
<p>I am new to kubernetes.</p>
<p>Can someone please explain that what is the real purpose of <strong>"--wait=false"</strong> in <code>minikube start --wait=false</code> command?</p>
<p>I am not able to find the appropriate answer in internet.</p>
| Raashith | <p><a href="https://minikube.sigs.k8s.io/docs/commands/start/#options" rel="nofollow noreferrer">minikube start -options</a></p>
<p>According to documentation:</p>
<pre><code>--wait strings comma separated list of Kubernetes components to verify and wait for after starting a cluster. defaults to &q... | user18464468 |
<p>There is a folder name "data-persistent" in the running container that the code reads and writes from, I want to save the changes made in that folder. when I use persistent volume, it removes/hides the data from that folder and the code gives an error. So what should be my approach.</p>
<pre><code>FROM pyt... | Sardar Arslan | <p>First , k8s volume mounting point overwrite the original file system /data-persistent/</p>
<p>To solve such a case you have many options</p>
<p><strong>Solution 1</strong></p>
<ul>
<li>edit your docker file to copy local data to /tmp-data-persistent</li>
<li>then add "init container" that copy content of /... | Tamer Elfeky |
<p>Yesterday, I installed kubernetes microk8s on my private laptop to learn about kubernetes,
But even on first simple file with PersistentVolume I'm getting a lot of validation errors,</p>
<p>I have installed microk8s on Ubuntu from below source:
<a href="https://microk8s.io/?_ga=2.70856272.1723042697.1642604373-62089... | dominbdg | <p>Issue related to yaml indentation , you can use valid online examples like</p>
<p><a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/</a></p>
<p>... | Tamer Elfeky |
<p>Not able to create cluster using existing nodes (RKE) on rancher 2.5.10. Firewall is disabled by default on all the servers.</p>
<p>Internal error occurred: failed calling webhook "rancherauth.cattle.io": Post <a href="https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation?timeout=10s" rel="no... | Bharath Reddy | <p>reference: <a href="https://rancher.com/docs/rancher/v2.6/en/troubleshooting/expired-webhook-certificates/" rel="nofollow noreferrer">https://rancher.com/docs/rancher/v2.6/en/troubleshooting/expired-webhook-certificates/</a></p>
<pre class="lang-sh prettyprint-override"><code>kubectl delete secret -n cattle-system c... | dillon y |
<p>I have a couple of overlays (dev, stg, prod) pulling data from multiple bases where each base contains a single service so that each overlay can pick and choose what services it needs. I generate the manifests from the dev/stg/prod directories.</p>
<p>A simplified version of my Kubernetes/Kustomize directory structu... | unboundedcauchy | <p>You can try using <a href="https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/replacements/" rel="nofollow noreferrer">https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/replacements/</a></p>
<p>For your scenario, if you want to reference the <code>aws-region</code> into your Se... | Justin Miguel Zamora |
<p>I try to deploy nginx deployment to see if my cluster working properly on basic k8s installed on VPS (kubeadm, ubuntu 22.04, kubernetes 1.24, containerd runtime)</p>
<p>I successfully deployed metallb via helm on this VPS and assigned public IP of VPS to the
using CRD: apiVersion: metallb.io/v1beta1 kind: IPAddressP... | corey | <p>I'm facing the same issue.</p>
<p>Kubernetes cluster is deployed with Kubespray over 3 master and 5 worker nodes. MetalLB is deployed with Helm, IPAddressPool and L2Advertisement are configured. And I'm also deploying simple nginx pod and a service to check of MetalLB is working.</p>
<p>MetalLB assigns first IP from... | GGorge |
<p>I am deploying openShift cluster (ocp) on openstack environment with 3 master and 3 worker node.For that I have generated the install-config.yaml file using "openshift-install" command. I want to use different flavour for master (m1.xlarge) and worker (m1.2xlarge). How Can I define this in install-config.... | user3115222 | <p>According to the <a href="https://docs.openshift.com/container-platform/4.10/installing/installing_openstack/installing-openstack-installer-custom.html#installation-osp-config-yaml_installing-openstack-installer-custom" rel="nofollow noreferrer">documentation</a>, you should add <code>type: <flavor></code> in ... | VANAN |
<p>Now I'm using WSL 2 and Docker Desktop on Windows 10.</p>
<p>I created an YAML script to create an ingress for my microservices like below.</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-srv
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: post... | Daniel Morales | <p>It was because of the corrupted filesystem.</p>
<p>When I ran the ingress-nginx deployment command, there was a docker-desktop crash because of the lack of drive storage size.</p>
<p>So I removed all corrupted, unused or dangling docker images.</p>
<p><code>docker system prune</code></p>
<p>Also I deleted ingress-ng... | Daniel Morales |
<p>I'm running Kubernetes v1.25.9+rke2r1.
I have a Metallb correctly setup with an external ip address and haproxy ingress controller.
I need to expose a cockroachdb instance via ingress and I set up that config in the crdb instance correctly and the ingress spins up correctly. but without any ip address. And therefore... | simone.benati | <p>The issue was with metallb and a custom resource</p>
<p>while adding this to the manifests, everything was provisioned successfully:</p>
<pre><code>apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: advertisement
namespace: metallb
spec:
ipaddresspools:
- first-pool
</code></pre>
| simone.benati |
<p>I have an Azure question. I use terraform in the Azure Cloud service. I try to start up 2 AKS cluster there. But I always get an error that my CIDR settings are wrong.</p>
<p>I use in Cluster one:</p>
<pre><code>resource "azurerm_subnet" "cluster1-node-pool-subnet" {
name = &qu... | IFThenElse | <p>There are basically two issues in your subnet definitions:</p>
<ol>
<li><p>Azure tells you that you are using invalid CIDR notations. E.g. in case of <code>cluster1-node-pool-subnet</code> you are specifying in address prefix <code>["10.0.1.0/19"]</code>. While <code>10.0.1.0/19</code> is a valid IP addres... | stdtom |
<p>I read the following article about resource management in kubrnaties: <a href="https://home.robusta.dev/blog/kubernetes-memory-limit" rel="nofollow noreferrer">https://home.robusta.dev/blog/kubernetes-memory-limit</a></p>
<p>One of the important points there is that: "memory is a non-compressible resource. Once... | Idan Aviv | <p>In Kubernetes, when a pod releases its memory, it goes back into the pool of available resources on the node.</p>
<p>Here's how it works: When a pod is up and running, it gets assigned a specific amount of memory from the node it's running on. This memory is exclusively reserved for that pod and can't be used by any... | Udi Hofesh |
<p>Everytime I try accessing my minIO console via the browser with a port-forward, the connection will work briefly with multiple connection messages of:</p>
<pre><code>Handling connection for 9000
Handling connection for 42935
Handling connection for 42935
Handling connection for 42935
Handling connection for 42935
Ha... | Leo Lad | <p>Resolved. The issue didn't have anything to do with my actual code.</p>
<p><a href="https://github.com/minio/console/issues/2539" rel="nofollow noreferrer">https://github.com/minio/console/issues/2539</a></p>
| Leo Lad |
<p>I have created multi-node cluster on GKE and I was using this shell script for fixing the virtual memory on nodes <a href="https://gist.github.com/thbkrkr/bc12a3457fd0f71c5a2106b11ce8801e" rel="nofollow noreferrer">Set vm.max_map_count=262144 on the nodes of a GKE cluster #k8s</a>. I want it to be executed in my clo... | Danyil Poprotskyi | <p>Basically in the line</p>
<pre><code>gcloud compute ssh --zone $(zone_by_node $node) $node -- sudo bash -c "'"$@"'"
</code></pre>
<p>set your username before node:</p>
<pre><code>gcloud compute ssh --zone $(zone_by_node $node) username@$node -- sudo bash -c "'"$@"'"
</code></... | Danyil Poprotskyi |
<p>We have our web api service running in OpenShift for the past few months</p>
<p>When we deployed this to OpenShift, initially we have given basic request and limits for memory and CPU.</p>
<p>Sometime when the resource limit crossed its threshold we had to increase the limit</p>
<p>We have several services deployed ... | user804401 | <p>Try the below queries which are helpful in your case :</p>
<pre><code>avg (
avg_over_time(container_cpu_usage_seconds_total:rate5m[30d])
) by (pod_name)
</code></pre>
<p>The above query is used to determine the average CPU usage of a certain pod for the past 30 days.</p>
<pre><code>avg (
avg_over_time(conta... | Sai Chandra Gadde |
<p>I'm on GKE and I'm trying to expose one application using IPV6 address.</p>
<p>This is my service.yaml</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
annotations:
cloud.google.com/neg: '{"ingress":true}'
labels:
run: ubuntu
name: ubuntu
namespace: default
spec:
loadBalancerIP: &quo... | pzk | <p>Below troubleshooting steps can help you to resolve your issue:</p>
<ol>
<li><p>IPv6 is only for HTTP, SSL Proxy and TCP proxy and make sure you are using one of them.</p>
</li>
<li><p>The following <a href="https://cloud.google.com/kubernetes-engine/docs/tutorials/configuring-domain-name-static-ip#use_an_ingress" r... | Sai Chandra Gadde |
<p>The problem is that I need to modify the StorageClassName but it's not possible because there was a blank StorageClassName assigned.</p>
<p>This PVC is bound to a PV, so, if I delete the PVC to create a new one with the StorageClassName, the data that is in my AWS will be deleted?</p>
| Teachh | <p>You can recreate an existing PVC reusing the same PV with no data losses by using <a href="https://kubernetes.io/blog/2021/12/15/kubernetes-1-23-prevent-persistentvolume-leaks-when-deleting-out-of-order/" rel="nofollow noreferrer">reclaim policy</a>.</p>
<p>In case of Delete, the PV is deleted automatically when the... | Sai Chandra Gadde |
<p>I'm trying to troubleshoot an issue I'm having in kubernetes where after a job fails, the associated pod seemingly disappears and I can't view the logs. The job still exists though.</p>
<p>But that's not what my question is about. In reading through the documentation, it seemingly uses the terms "terminated&quo... | Alex A | <p>As @karthikeayan said, Delete and Terminate are the same. And yes, your pods got deleted because activeDeadlineSeconds exceeded.</p>
<p>if your job have some error but you restartPolicy is not Never, so your job created pods will be deleted</p>
<p>restartPolicy can be set: This indicates that kubernetes will restart... | Sai Chandra Gadde |
<p>I install ingress in the standard way. Using the Helm Chart.
<a href="https://kubernetes.github.io/ingress-nginx" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx</a></p>
<p>But I do not want my LoadBalancer to be automatically deleted when the controller is deleted.</p>
<pre><code> finalizers:... | JDev | <p><strong>You can remove finalizers by two ways:</strong></p>
<ol>
<li>Using <code>kubectl edit svc service_name</code>, remove the part below and save it again.</li>
</ol>
<p><code> finalizers:</code></p>
<pre><code>` - service.kubernetes.io/load-balancer-cleanup`
</code></pre>
<ol start="2">
<li><p>You can use <a hr... | Sai Chandra Gadde |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.