Question
stringlengths
65
39.6k
QuestionAuthor
stringlengths
3
30
Answer
stringlengths
38
29.1k
AnswerAuthor
stringlengths
3
30
<p>I am able to create multiple clusters locally using minikube but unable to find a way to run them simultaneously.</p> <p>I created 2 clusters using the below command.</p> <pre><code>minikube start --profile &lt;clusterName&gt; </code></pre> <p>Then I switched to particular cluster,</p> <pre><code>kubectl config use-...
mt-user20620859
<p>I think it has stopped running because it might be using the same port. Have you checked it with <code>docker ps</code>?</p>
Abdullah Saad
<p>I am experiencing a lot of CPU throttling (see nginx graph below, other pods often 25% to 50%) in my Kubernetes cluster (k8s v1.18.12, running 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3+deb9u2 (2019-11-11) x86_64 GNU/Linux).</p> <p>Due to backports, I do not know whether my cluster contains the Linux kernel bug describe...
DaveFar
<p>Recently, I'm working on debuging the cpu throttling issue, with the following 5 tests, I've tested out the bug in kernel (Linux version 4.18.0-041800rc4-generic)</p> <p>This test case is intended to hit 100% throttling for the test 5000ms / 100 ms periods = 50 periods. A kernel without this bug should be able to ha...
Free Yang
<p>As per <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/" rel="nofollow noreferrer">Kubernetes Doc</a> , to reference a env variable in config use expr $(ENV_VAR).<br /> But, this is not working for me. In Readiness and Liveliness Probe API, I am getting token v...
limo_756
<p>There is an issue opened about a very similar question <a href="https://github.com/kubernetes/kubernetes/issues/40846" rel="nofollow noreferrer">here</a></p> <p>Anyway, i want to share some yaml lines.<br /> This is not intended for production env, obviously it's just to play around with the commands.</p> <pre class...
kiggyttass
<p>I need to create Kubernetes services that their nodePort are auto-allocated by K8S, and port/targetPort must equal to nodePort. (The requirement comes from the spec of a spark YARN node as the backend of the services). Maybe I can first create the service with a fixed dummy port/targetPort and an auto-allocated node...
Jarod
<p>There are two main ways to expose a resource on k8s</p> <p>First one using <code>kubectl expose</code> command: using this one you can choose the pod/deploy to expose but not the nodePort value. Then as you already know you must set the nodeport value on the created yaml</p> <p>Another way to expose is using <code>k...
kiggyttass
<p>I'm creating a kind cluster with <code>kind create cluster --name kind</code> and I want to access it from another docker container but when I try to apply a Kubernetes file from a container (<code>kubectl apply -f deployment.yml</code>) I got this error:</p> <pre><code>The connection to the server 127.0.0.1:6445 wa...
Vincent Andrieu
<p>Don't have enough rep to comment on the other answer, but wanted to comment on what ultimately worked for me.</p> <h2>Takeaways</h2> <ul> <li>Kind cluster running in it own bridge network <code>kind</code></li> <li>Service with kubernetes client running in another container with a mounted kube config volume</li> <li...
Adam Bannach
<p>kubectl version /home/lenovo/.local/bin/kubectl: line 1: syntax error near unexpected token <code>&lt;' /home/lenovo/.local/bin/kubectl: line 1: </code><Code>NoSuchKey</Code>The specified key does not exist.No such object: kubernetes-release/release//bin/linux/amd64/kubectl'</p>
Noob
<p>I cleared kubectl from <code>/usr/local/bin</code></p> <p>and also from <code>/home/$USER/.local/bin</code></p> <p>And run the commands below:</p> <pre class="lang-bash prettyprint-override"><code>curl -LO &quot;https://dl.k8s.io/release/v1.24.7/bin/linux/amd64/kubectl&quot; curl -LO &quot;https://dl.k8s.io/v1.24.7...
Luiz
<p>I try to deploy a spring api-gateway app to GKE using jenkins and helm chart</p> <p>for RoleBinding I have this manifest</p> <pre><code>apiVersion: v1 kind: ServiceAccount metadata: name: api-gateway-sa --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: api-gateway-cr rules: - apiGr...
Bonifasius Anggara
<ol> <li><p>Run the command <code>kubectl version</code> to check the version of Kubernetes you're using. Make sure that you are using the latest kubernetes and <a href="https://github.com/DNXLabs/terraform-aws-eks-cloudwatch-logs/issues/7#issuecomment-1143525388" rel="nofollow noreferrer">Helm version</a> to support ...
Murali Sankarbanda
<p>I want to autoscale a pod based on how many threads a container uses, so: if container threads &gt; 10 then scale from 1 -&gt; 2. Is this possible?</p> <p>CPU utilization as metric is not going to work unfortunately.</p> <p>Haven't found anything on this yet</p>
dahol
<p>As mentioned by David Maze, Kubernetes does not track this as a statistic on its own, however if you have another metric system that is linked to HPA, it should be doable.</p> <ol> <li><p>Try to gather metrics on the number of threads used by the container using a monitoring tool such as Prometheus.</p> </li> <li><p...
Murali Sankarbanda
<p>This works fine</p> <pre><code>kind create cluster --name newl kubectl cluster-info --context kind-newl Kubernetes control plane is running at https://127.0.0.1:33933 CoreDNS is running at https://127.0.0.1:33933/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy </code></pre> <p>But my yaml multi-node faile...
Richard Rublev
<p>The following commands have to be executed, link: <a href="https://github.com/kubernetes-sigs/kind/issues/2744#issuecomment-1127808069" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/kind/issues/2744#issuecomment-1127808069</a></p> <pre class="lang-bash prettyprint-override"><code>echo fs.inotify.max_u...
TCH
<p>kubectl cannot connect to private gke-cluster with Enable control plane global access. getting the error Unable to connect to the server: dial tcp IP_ADDRESS:443: i/o timeout.</p> <p>checked the cluster configurations and network settings .</p>
leyon thampi
<p>Looks like Kubectl is unable to communicate with the cluster control plane. Could you kindly check to see whether the <strong>Control plane authorised networks</strong> settings is enabled or disabled?</p> <p>If its enabled you must edit the settings of your cluster and add your IPaddress/32 to control plane author...
Jomcy Pappachen
<p>I have deployed Nginx Ingress Controller in EKS cluster v1.20.15-eks using helm chart from <a href="https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx/" rel="nofollow noreferrer">https://artifacthub.io/packages/helm/ingress-nginx/ingress-nginx/</a> version 4.4.2</p> <p>The controller is deployed succes...
Ankit Soni
<p>chart version 4.4.2 has the application version of 1.5.1.</p> <p>Version 1.5.1 of nginx only supports kubernetes versions of 1.25, 1.24, 1.23. For kubernetes v1.20 the latest supported version was v1.3.1.</p> <p>The chart version for v1.3.1 is v4.2.5.</p> <p>The error you are facing, is due to nginx not finding v1.E...
akathimi
<p>I'm sorry if it is noob question, but I can't find an explanation for this anywhere.</p> <p>I need to know which version of the helm server are running on the cluster. In my machine I have the helm client in both versions (helm2 and helm3), when I run the command <code>helm2 version</code> or <code>helm3 version</co...
Arrow Root
<p>helm3 does not have a server version unlike helm v2.</p> <p>You can run <code>helm version</code> for helm v2.</p> <p>Here is the <a href="https://helm.sh/docs/faq/changes_since_helm2/#removal-of-tiller" rel="nofollow noreferrer">tiller removal doc</a>.</p>
akathimi
<p>When a container image is not present on the cluster the pod fails with the error <code>ErrImageNeverPull</code> but the job never fails. Is there a configuration that I can add to make sure the job fails if the pod startup fails.</p> <pre><code>apiVersion: batch/v1 kind: Job metadata: name: image-not-present spec...
Saurabh Saxena
<p>You can config <strong>activeDeadlineSeconds</strong> for this case. However, you have know how long your job take to reach <strong>Complete</strong> status to avoid this timeout can kill your pod processing.</p> <p>From the <a href="https://kubernetes.io/docs/concepts/workloads/controllers/job/#job-termination-and-...
Raymond Bao Ly
<p>I want to remove cpu limits for a specific container where the namespace has default cpu limits (via limitrange). Per <a href="https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/memory-default-namespace/#what-if-you-specify-a-container-s-request-but-not-its-limit" rel="nofollow noreferrer">docs</a>...
Yasser Rabee
<p>Seems like you can remove limits with <code>null</code> value. At least it worked from helmfile:</p> <pre><code> resources: requests: memory: &quot;100Mi&quot; cpu: &quot;100m&quot; limits: memory: &quot;100Mi&quot; cpu: null </code></pre>
Konstantin
<div class="s-table-container"> <table class="s-table"> <thead> <tr> <th>Node IP</th> <th>Role</th> <th>OS</th> </tr> </thead> <tbody> <tr> <td><code>192.x.x.11</code></td> <td>Master 1</td> <td>RHEL8</td> </tr> <tr> <td><code>192.x.x.12</code></td> <td>Master 2</td> <td>RHEL8</td> </tr> <tr> <td><code>192.x.x.13</code...
Mohammed Edris
<p>Kindly check if you have stacked up etcd datastore as part of your k8s cluster. etcd for its quorum requires at least 2 masters to be running and in that case failure toleration is n-1, for 3 nodes it shall tolerate only one failure..so in your case as 2 masters are down your cluster is non-operational</p>
Raghav
<p>UPDATE:</p> <p>I have domain my.shops.de which will be internal forward all traffic to kubernetes service &quot;shop-service&quot;.</p> <p>On this domains I am managing different shops for my clients. eg. my.shops.de/11111 for client with id 11111 and other eg. my.shops.de/22222 for client with id 22222.</p> <p>Now ...
user1167253
<p>Try something like this:</p> <pre><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: cname-redirect-ingress namespace: shop annotations: kubernetes.io/ingress.class: &quot;nginx&quot; cert-manager.io/cluster-issuer: &quot;letsencrypt&quot; acme.cert-manager.io/http01-edit-in-place...
Randych
<p><strong>This is my ingress yaml file</strong></p> <pre><code> apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: example namespace: ingress-nginx spec: ingressClassName: nginx rules: - host: ticketing.dev http: paths: - pathType: Prefix ...
Ayush Niroula
<p>You have not specified a path in your ingress-file, only a pathType.</p> <p>Below <code>paths</code> you want to add <code>path: &quot;/&quot;</code>.</p> <p>If you look at the <a href="https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/#IngressSpec" rel="nofollow noreferrer">Ingress re...
KotlinLukas
<p>I have a single node kubernetes cluster running in a VM in azure. I have a service running SCTP server in port 38412. I need to expose that port externally. I have tried by changing the port type to NodePort. But no success. I am using flannel as a overlay network. using Kubernetes version 1.23.3.</p> <p>This is my ...
vigneshwaran s
<p>You cannot expose port 38412 externally because the default node port range in Kubernetes is 30000-32767.</p> <p>The best solution (which I tried and working) is to deploy a router/firewall in between Kubernetes cluster and the external srsRAN. On firewall map SCTP port 38412 --&gt; 31412.</p> <p>Initiate the connec...
Rohit Jamwal
<p>I am currently trying to set up an horizontal pod autoscaler for my application running inside Kubernetes. The HPA is relying on external metrics that are fetched from Prometheus by a Prometheus adapter (<a href="https://github.com/kubernetes-sigs/prometheus-adapter" rel="nofollow noreferrer">https://github.com/kube...
Agilulfe
<p>I've found the answer to my own question. Here it is for those of you who might have the same problem.</p> <p>The metrics in Prometheus and the Kubernetes metrics API were using camel casing (eg. sessionTotal). Even though those naming were used in the HorizontalPodAutoscaler definition, HPA was lowercasing behind t...
Agilulfe
<p>I'm trying to delete resources of a particular kind in a k8s cluster using client-go.</p> <p>I'm using this code but it requires a specific namespace to be declared, but i want to delete this resource in all namespaces.</p> <pre><code> u.SetName(&quot;test&quot;) u.SetNamespace(v1.NamespaceAll) u.SetGroup...
aditya
<p>Use the <code>List</code> method to get a list of all resources in <code>all namespaces</code> and then loop through the list and delete each resource using the <code>Delete</code> method.</p> <pre class="lang-js prettyprint-override"><code>cr := &amp;v1alpha1.CustomResource{} // Get a list of all instances of your...
dom1
<p>I have two projects in GCP. Let's call them project <code>A</code> and project <code>B</code>. Project <code>A</code> will contain the cluster for the deployment, while project <code>B</code> will contain the Artifact Registry (please note that this is not the same as the Container Registry).</p> <p>The deployment i...
Harry Myburgh
<p>Putting in answer form. As @avinashjha said: the default service account from project <code>A</code> needs to have the role <code>Artifact Registry Reader</code> in project <code>B</code>. This allows for the default service account to oauth and pull the docker image from the registry.</p>
Harry Myburgh
<p>I have installed the kube prometheus stack helm chart. The chart appears to install on my 3 node Kubernetes cluster (1.27.3) without issues. All the deployments and pods seems to enter a ready state. I port forwarded the prometheus pod and attempted to connect but was not able to.</p> <p>When I review the logs from ...
Edward S.
<blockquote> <p>What is this error complaining about?</p> </blockquote> <p>Problem lies within your expression:</p> <pre><code>histogram_quantile(0.99, sum by (cluster, instance, le) ( rate( kubelet_pod_worker_duration_seconds_bucket{job=&quot;kubelet&quot;,metrics_path=&quot;/metrics&quot;} [5m]))) * on (clu...
markalex
<p>I am new to Kubernetes, Istio and so on, so please be gentle :)</p> <p>I have minikube running, I can deploy services and they run fine. I have installed istio following this guide: <a href="https://istio.io/latest/docs/setup/install/istioctl/" rel="nofollow noreferrer">https://istio.io/latest/docs/setup/install/ist...
D. Joe
<p>This might help you:</p> <p>I am having same error in injected container istio-init.</p> <p>My system is : k8s 1.26 and istio 1.17.1, installed on rocky 8.5 stations.</p> <p>This solved my problem:</p> <p>1.</p> <pre><code>cat &lt;&lt;EOT &gt;&gt; /etc/modules-load.d/k8s.conf overlay br_netfilter nf_nat xt_REDIRECT ...
Lior E
<p>I want to change kube-apiserver log level use --v parameter , I checked all the documents, and none of them gave the value range of this parameter.</p> <p>Check the code, the value is int32 type, I tried to fill in 0, 1, 2, and even 9999, all can pass the verification and start kube-apiserver normally.</p> <p>So I w...
moweiraul
<p>9999 isn't a valid value.</p> <p><a href="https://i.stack.imgur.com/bcFc4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bcFc4.png" alt="Table" /></a></p> <p><a href="https://docs.openshift.com/container-platform/4.8/rest_api/editing-kubelet-log-level-verbosity.html#log-verbosity-descriptions_edi...
glv
<p>I'm pretty new to Kubernetes, I have docker for mac, not minikube.</p> <p>I have the deployment file running with one pod (containing an express app) in the cluster, then i created a NodePort service.</p> <p>Inside the express app i have a get request to '/posts' and I want to access it from the localhost.</p> <p>i ...
Dannom
<p>PREMISE:</p> <blockquote> <p>Every node in the cluster configures itself to listen on that assigned port and to forward traffic to one of the ready endpoints associated with that Service. You'll be able to contact the type: NodePort Service, from outside the cluster, by connecting to any node using the appropriate p...
glv
<p>We currently have several microservices running on-premises, and we use shell scripts to monitor their performance, including JVM, heap size, and number of running threads. However, we are planning to move to the cloud using Kubernetes. We want to monitor service level stats like the number of threads open, JVM, hea...
user3069309
<p>Your question requires a series of reflections that you don't do.. for example, which Cloud provider are you going to? Why do you want to create a monitoring (Prometheus/Alertmanager/Grafana) and a logging stack (Elasticsearch/fluentd)? Is there a particular reason why you want to remain &quot;untied&quot; from the ...
glv
<p><strong>I am deploying PostgreSQL cluster using kubernetes runnung 3 Instance How do you add postgresql connection string url by using kubernetes yaml file</strong></p> <blockquote> <p>postgresql://bigdata:bigdata@dbhost1:5432,dbhost2:5432/bigdata?target_session_attrs=primary</p> </blockquote>
ahmed
<p>Try like this:</p> <pre><code>jdbc:postgresql://&lt;database_host&gt;:&lt;port&gt;/&lt;database_name&gt; </code></pre> <p>Credentials will need to be managed via Secrets.</p>
glv
<h2>Background</h2> <p>I have two Kubernetes nodepools - <code>A</code> and <code>B</code>.</p> <p><code>A</code> nodepool is the right hardware and the preferred one. <code>B</code> be nodepool is less preferred since it using different hardware.</p> <p>My pods allocation preferring nodepool <code>A</code>. But, <code...
No1Lives4Ever
<p>The need is very clear.</p> <p>You can add this piece of code to your Deployment (.spec.affinity.nodeAffinity):</p> <pre><code> nodeAffinity: # Soft anti affinity between nodes A and B preferredDuringSchedulingIgnoredDuringExecution: - weight: 100 podAffinityTerm: labelSelector...
glv
<p>I am just learning containers and kubernetes and everything around it. There has been a use case to build a reliable setup, where we can store all our python scripts(small, usecase defined scripts that do one only job each). There are some scripts in other languages like perl too.</p> <p>Not sure if this is the corr...
Sudhi
<p>The idea of ​​containerizing your scripts allows you to have a highly customized &quot;environment&quot; that doesn't change wherever you deploy it.</p> <p>For the management of these containers then, you decide according to your needs... If they are management scripts, you can think of creating a management Pod tha...
glv
<p>I have a Google Cloud Composer environment set up that has 3 nodes in the worker pool. Each node has memory of 16GB (using n1-standard-4) instance. I have tasks inside a DAG that takes around 7-8GB of memory. The allocable memory for the worker nodes is roughly 12GB and hence, these tasks should run without encounte...
shubh gupta
<p>It's certainly good practice to pre-assess the resources available in your node-pool and know in advance how &quot;big&quot; your Pods will be.</p> <p>Once you know how many resources you have available, you can do 2 things:</p> <p>1.set up resources/limits for all your Pods, making sure you never reach the maximum ...
glv
<p>When releasing a Helm chart, Kubernetes resources have Helm's <code>.Release.Name</code> prepended to their names. In the Chart I'm writing separate namespaces with default resource naming is enough, and the additional prefix is verbose and unwanted. Vault is a dependency of my Chart.</p> <p>Is there a way I can ach...
Chris
<p>I took a quick look at the Chart and I don't think there is the possibility of doing what is requested.</p> <p>What you can do is modify the templates yourself, adding the override parameter for names/namespaces and try doing a PR against the Hashicorp repo; maybe they didn't think this feature could be useful.</p> ...
glv
<p>I have an issue with my GKE cluster. I am using two node pools: secondary - with standard set of highmen-n1 nodes, and primary - with preemptible highmem-n1 nodes. Issue is that I have many pods in Error/Completed status which are not cleared by k8s, all ran on preemptible set. THESE PODS ARE NOT JOBS.</p> <p>GKE do...
Withel
<p>The given commands does not work for me.</p> <p>I have created a few manifests that you can apply in your cluster to automatically delete the Pods matching the criteria with a kubernetes CronJob.</p> <p><a href="https://github.com/tyriis/i-see-dead-pods" rel="nofollow noreferrer">https://github.com/tyriis/i-see-dead...
Nils Müller
<p>Here is my ingress.yaml file that I'm trying to patch.</p> <pre><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: notesapp-ingress namespace: default annotations: kubernetes.io/ingress.class: addon-http-application-routing cert-manager.io/cluster-issuer: letsencrypt nginx.ingress...
Alex Pankratov
<p>You are currently replacing the list and not only a single item.</p> <p>you can use the patch replace operation to target list item replacement, be careful when mixing with other operations like delete or add as index can change in such szenarios!</p> <pre class="lang-yaml prettyprint-override"><code>--- # yaml-lang...
Nils Müller
<p>I have a kubernetes cluster on which I have deployed a opensearch cluster and opensearch dashboard using Helm, I am also able to deploy logstash using helm successfully but I am confused on how to integrate those, I want to feed data to my Opensearch using logstash as my OBJECTIVE as I am not able to find much docum...
SAGE
<p>for opensearch sso(keycloak) please use below steps: opensearch:</p> <ol> <li><p>Make a custom iamge for opensearch, for this make 2 files as below. i.config.yml(for opensearch security plugin) --- _meta: type: &quot;config&quot; config_version: 2</p> <pre><code> config: dynamic: http: anonymous_auth_...
sagar kivale
<p>I got a .net6 service hosted in an AKS cluster with app insight and profiler enabled. Logs appear in app insight and live metrics are working and I can see every action in app insight.</p> <p>When I click the &quot;Profile now&quot; button in the performance tab, it says a profiling session is in progress and I fire...
CodeMonkey
<p>Sadly, Azure profiler just does not support dotnet 6. There might be other solutions for Azure witr this dotnet version</p>
codExpert
<p>I have a system consist of 2 applications: <code>Application 1</code> and <code>Application 2</code>. Fundamentally, those applications are perfectly sync in term of reading\writing from storage.</p> <h2>System arch:</h2> <p><a href="https://i.stack.imgur.com/1VfMq.png" rel="nofollow noreferrer"><img src="https://i....
No1Lives4Ever
<p>You can use Filestore service offered witihin GCP as a storage solution for Kubernetes app that you will be creating.</p> <p>The Filestore supports &quot;<code>ReadWriteMany</code>&quot; access for your apps to use. You can see official documentation and implementation via this <a href="https://cloud.google.com/kube...
iamwillbin
<p>I'm trying to understand how securityContext work in my cluster (k8s v 1.24 &amp; the node is an Ubuntu 18.04).</p> <p>I simply want to do a simple cat /dev/tty0 from the container.</p> <p>Here is my simplified configuration of the node :</p> <pre><code>bash-4.2# ls -al /dev/tty0 crw--w---- 1 root tty 4, 0 Jul 25 05...
Ptiseb
<p>The securityContext specifies that the container should run as the user with UID0 and GID 5. When the container runs with root privileges, it still could have certain restrictions imposed by the underlying container runtime for security reasons.</p> <p>In your case, the issue is, that accessing <strong>/dev/tty0 typ...
pwoltschk
<p>I'm trying to deploy a container to AKS but the pod is constantly in CrashLoopBackOff and restarting. I tried with different pods but apparently is unrelated with that regard.</p> <p>The pod has very simple functional behaviour that works fine locally. It's a simple express server listening to the port 9002 and send...
Manel
<p>Finally solved the issue, it was due to a mismatch in the CPU architecture between where I was building the docker image and deploying it. I was building on a Mac and deploying to a x86_64 cloud server</p>
Manel
<p>I’m trying to deploy a Flask application using Apache Spark 3.1.1 on Kubernetes.</p> <p><strong>app.py</strong></p> <pre><code>from flask import Flask from pyspark.sql import SparkSession app = Flask(__name__) app.debug = True @app.route('/') def main(): print(&quot;Start of Code&quot;) spark = SparkSession...
SkuPak
<p>I don't think that's a good idea, maybe you need to use client mode and then put the load (executor) on pods.</p> <p><a href="https://github.com/Wh1isper/sparglim#pyspark-app" rel="nofollow noreferrer">https://github.com/Wh1isper/sparglim#pyspark-app</a></p> <pre><code>NAME READY STAT...
Wh1isper
<p>I'm experimenting with the new Flink Kubernetes operator and I've been able to do pretty much everything that I need besides one thing: getting a JAR file from the S3 file system.</p> <h2>Context</h2> <p>I have a Flink application running in a EKS cluster in AWS and have all the information saved in a S3 buckets. Th...
Ricardo Correia
<p>For anyone else looking this up in future, here's what I did that helped.</p> <p>Depending on your version of the k8s operator, you may now have a <a href="https://github.com/apache/flink-kubernetes-operator/pull/609" rel="nofollow noreferrer"><code>postStart</code></a> helm chart value. As of this writing, that ver...
Joel Kang
<blockquote> <p>in kubernetes i have postgres as a stateful set and i have it defined as service postgres then i want to expose it as an ingress. i have changed type from clusterip to NodePort of the service and i have created ingress for postgres like below</p> </blockquote> <pre><code>kind: Ingress metadata: name: ...
dheeraj
<p>Ingress only works for HTTP traffic. You will not able to expose TCP/5432 using ingress.</p> <p>Consider creating a service of type LoadBalancer with the appropriate annotations by following the AWS Load Balancer Controller documentation:</p> <p><a href="https://kubernetes-sigs.github.io/aws-load-balancer-controller...
NaniBot
<p>I have an app with a React frontend and Flask backend that I can run successfully both locally and in Docker, and I'm now trying to deploy it to Kubernetes. The Flask part works fine, but when I try to access the React service and it sends requests back to the Flask service, I get an AxiosEror saying &quot;timeout o...
Avi Kraft
<p>The error is resolved. I set up a reverse proxy server using NGINX to route my requests and deployed it to K8s along with the other layers. The app is working as intended now.</p>
Avi Kraft
<p>For reasons I need to parse a certain value from the <code>kubectl get pods</code> respsonse.</p> <p>I need the value of <code>status.conditions..status</code> where <code>status.conditions..type==&quot;ContainersReady&quot;</code>.</p> <p>But I'm struggling with the required <code>jsonpath</code> query.</p> <p>I ca...
Kimses
<pre><code>kubectl get pods -o=jsonpath='{.items[*].status.conditions[?(@.type==&quot;ContainersReady&quot;)].status}' </code></pre>
vlanto
<p>I created some Go code to list all resources in all namespaces.</p> <pre><code>package main import ( &quot;context&quot; &quot;fmt&quot; metav1 &quot;k8s.io/apimachinery/pkg/apis/meta/v1&quot; &quot;k8s.io/apimachinery/pkg/apis/meta/v1/unstructured&quot; &quot;k8s.io/apimachinery/pkg/runtime/sc...
guettli
<p>you can use goroutines to asynchronsly call the apis and print them (not in order) :</p> <pre><code>var wg sync.WaitGroup for _, group := range serverResources { wg.Add(1) // goroutine for executing the seconde loop for go func() { defer wg.Done() for _, resource := range group.APIResou...
Achref Nasri