Question stringlengths 65 39.6k | QuestionAuthor stringlengths 3 30 ⌀ | Answer stringlengths 38 29.1k | AnswerAuthor stringlengths 3 30 ⌀ |
|---|---|---|---|
<p>I am trying to deploy mancenter for hazelcast 5.1.4 using kubernetes, But I need to setup the ldap from starting up.</p>
<p>in the version 3.12.x, I use to set a configmap with a value ldap.properties and once the pod was up I could use the ldap login, but from version 4..x.x onwards looks like this change.</p>
<p>A... | Jorococo | <p>From this latest release 5.0, Yo can find the setup in this <a href="https://docs.hazelcast.com/management-center/5.3-snapshot/deploy-manage/ldap" rel="nofollow noreferrer">official doc</a>.</p>
<p>You can use your existing LDAP server for authentication/authorization on the Management Center.To create and manage ad... | Sai Chandra Gadde |
<p>Is there any query to get bytes transmitted rate, of the traffic which is out of the node to a remote peer? For pod also, I need the traffic which goes outwards from the pod, through the node, and outwards from the node. I suppose the usual "container_network_transmit_bytes_total" and "node_network_tr... | user22058606 | <p><strong>Try using the following queries:</strong></p>
<pre><code>sum(irate(node_network_receive_bytes_total[1m])) by (instance)
irate(container_network_transmit_bytes_total{name="redis"}[1m])
</code></pre>
<p>Where irate(v range-vector) calculates the per-second instant rate of increase of the time series... | Sai Chandra Gadde |
<p>i have a GKE cluster with FastAPI service, i tried to install certificate with "google managed certificate" so i can access it through https. Certificate installation is working as expected and i can access it with https, but i got problem when i try to access my api, it return me 502 with this error:</p>
... | Akhdan Rasiq | <p>This error occurs mainly when Ingress backend is <code>unhealthy</code> or <code>failed to pick backend</code>, you can find then in logs,below troubleshooting steps can help to resolve your issue:</p>
<ol>
<li>When creating a GKE ingress, change the service type to <code>NodePort</code>.</li>
</ol>
<p>2.Check the f... | Sai Chandra Gadde |
<p>I need to setup a shared cache in minikube in such a way that different services can use that cache to pull and update DVC models and data needed for training Machine Learning models. The structure of the project is to use 1 pod to periodically update the cache with new models and outputs. Then, multiple pods can re... | LinkCoder | <p>After running <code>dvc repro</code> in <code>test-service</code>, a new <code>dvc.lock</code> will be created, containing the file hashes relative to your pipeline (i.e. the hash for <code>models/model.pkl</code> etc).</p>
<p>If you're running a shared cache, <code>inference-service</code> should have access to the... | dtrifiro |
<h2>Issue Description</h2>
<p>I am getting an error in fluent-bit basically saying it cant resolve host</p>
<pre><code>getaddrinfo(host='<My Elastic Cloud Instance>.aws.elastic-cloud.com:9243', err=4): Domain name not found
</code></pre>
<p>I suspect it has something to do with the port getting appended in the dn... | Tim Holum | <p>Also, if you are using Elastic Cloud, try to decode the value of ${CLOUD_ELASTICSEARCH_ID} variable, remove the <code>:443</code> and encode it again.</p>
<p>I was getting this error and it was solved after doing this.</p>
| gabo |
<p>I am trying to run a kubectl exec command on a pod, but it fails saying <em>'No such file or directory'</em></p>
<p>I can run the command if I login to the terminal of the pod through bash
Also this problem is only for a few commands.
I found that there is a PATH variable difference</p>
<ol>
<li><p>When i do kubect... | user19240299 | <p>You can try executing <code>bash -c "<command>"</code></p>
<pre><code>$ kubectl exec <pod> -- bash -c "<cmd>"
</code></pre>
<p>It is likely PATH is being modified by some shell initialization files</p>
| Gerard Garcia |
<p>I am deploying a NextJS app in various K8 environments, each passing it's own variables. I can pass them in and get them with <code>getServerSideProps()</code>, but as this function works on page components (or at least that's what the docs say), I have to add them in every single page through which my users can &qu... | Mike M | <p><a href="https://nextjs.org/docs/pages/api-reference/functions/get-initial-props" rel="nofollow noreferrer"><code>getInitialProps</code></a> seems what you want.</p>
<pre class="lang-js prettyprint-override"><code>App.getInitialProps = async ({ ctx }: AppContext) => {
const something = await getData();
retu... | r4bb1t |
<p>I am really confused about Kubernetes default Network Policy. By accessing the official <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/" rel="nofollow noreferrer">document</a>, I can read that:</p>
<ul>
<li>By default, a pod is non-isolated for egress; all outbound connections are ... | Unknown developer | <p>You check the link <a href="https://kubernetes.io/docs/concepts/services-networking/network-policies/#default-policies" rel="nofollow noreferrer">Default policies</a></p>
<p>By default, if no policies exist in a namespace, then all ingress and egress traffic is allowed to and from pods in that namespace.</p>
<p>You ... | Phani Kumar |
<p>I'm trying to create my first Helm release on an AKS cluster using a GitLab pipeline,
but when I run the following command</p>
<pre><code>- helm upgrade server ./aks/server
--install
--namespace demo
--kubeconfig ${CI_PROJECT_DIR}/.kube/config
--set image.name=${CI_PROJECT_NAME}/${CI_PROJECT_... | Salvatore Calla' | <p>You have to encode secret values to base64</p>
<p>Check the doc <a href="https://helm.sh/docs/chart_template_guide/function_list/#encoding-functions" rel="nofollow noreferrer">encoding-functions</a></p>
<p>Try below code</p>
<pre><code>apiVersion: v1
kind: Secret
metadata:
name: server-secret
namespace: demo
typ... | Phani Kumar |
<p>Our project is undergoing a refactor to a micro-services architecture, and we are currently considering different API gateway solutions.</p>
<p>We did our research, looked at the official sites for several solutions, went over some technical comparisons of different solutions, and read articles about our top picks.<... | Onlu | <p>Both Kong and Apache APISIX are popular and feature-rich API gateway solutions. Choosing the right one depends on your specific requirements and use case.</p>
<ol>
<li><p>API Management Features: Both Kong and Apache APISIX provide a wide range of API management features including API authentication, rate limiting, ... | Zhiyuan Ju |
<p>I tried to send request 192.168.49.2:31083, but it did not work. I'm using Kubernetes with Docker.</p>
<pre class="lang-none prettyprint-override"><code>kubectl expose deployment k8s-web-hello --port=3000 --type=NodePort
kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) ... | Đoàn Đức Bảo | <p>Refer to this <a href="https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport" rel="nofollow noreferrer">official Doc</a> and as per this you need to use “type: NodePort” in yaml that specifies a NodePort value and you need to do curl with this nodeport value only.</p>
<p>Below is the sample... | Hemanth Kumar |
<p>I want to define thread count for my fixed thread pool in my spring application. Where should I do that? I am confused between yaml and application.properties files.</p>
| darkstar | <p>You should define the thread count for your fixed thread pool in the <code>application.properties file</code>. This is the default configuration file for Spring applications, and it is the recommended place to store configuration settings. You can specify the number of threads for your fixed thread pool with the pro... | Hemanth Kumar |
<p>After running a pipeline job in Jenkins that runs in my k8s cluster</p>
<p>I am getting this error -</p>
<pre><code>‘Jenkins’ doesn’t have label ‘jenkins-eks-pod’.
</code></pre>
<p>What am I missing in my configuration?</p>
<p>Pod Logs in k8s-</p>
<pre><code> 2023-02-20 14:37:03.379+0000 [id=1646] WARNING o.c.j.... | EilonA | <p>This error might be due to not creating the label ‘jenkins-eks-pod’ on the jenkins server.</p>
<p>To create a label on the jenkins server :</p>
<blockquote>
<p>go to manage jenkins > Manage nodes and Clouds > labels and then enter
the label name.</p>
</blockquote>
<p>Post creating this label try to run the job... | Hemanth Kumar |
<p>In Kubernetes we need a new service to handle the root path, but but still a catch everything else on our current frontend.</p>
<p>Current frontend Ingress</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: current-frontend
labels:
app: current-frontend
tier: frontend
annotat... | IQn | <p>Ingress path matching can be enabled by setting the</p>
<p><code>nginx.ingress.kubernetes.io/use-regex annotation to true</code> .</p>
<p>See the description of the use-regex annotation :</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-ingress
annotations:
nginx.ingress.kub... | Hemanth Kumar |
<p>I want to organize my web apis iwth kubernetes ingress tool.</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: myapp-api-ingress
annotations:
kubernetes.io/ingress.class: nginx
# nginx.ingress.kubernetes.io/use-regex: "true"
# nginx.ingress.kubernetes.io/rewrite-... | barteloma | <p>Seems to be an issue with rewrite annotation that might cause the 404 error. Can you give the below annotation in the yaml and give a try :</p>
<pre><code> nginx.ingress.kubernetes.io/rewrite-target: /$2
</code></pre>
<p>As per this rewrite <a href="https://github.com/kubernetes/ingress-nginx/tree/main/docs/example... | Hemanth Kumar |
<p>I have deployed Jupyterhub on Kubernetes following this guide <a href="https://zero-to-jupyterhub.readthedocs.io/en/latest/" rel="nofollow noreferrer">link</a>, I have setup nbgrader and ngshare on jupyterhub using this guide <a href="https://nbgrader.readthedocs.io/en/stable/configuration/jupyterhub_config.html" re... | Anonymous | <p>An easier way to invoke terminal using jupyter-notebooks is to use magic function %%bash and use the jupyter cell as a terminal:</p>
<pre><code>%%bash
head xyz.txt
pip install keras
git add model.h5.dvc data.dvc metrics.json
git commit -m "Second model, trained with 2000 images"
</code></pre>
<p>For more i... | Hemanth Kumar |
<p>My service (with no ingress) is running in the amazon EKS cluster and I was asked to provide a CA signed cert for a third party that consumes the API hosted in the service. I have tried provisioning my cert using certificates.k8s.io API but it is still self-signed I believe. Is there a CA that provides certification... | ILoveCode | <p>Yes, Certificates created using the certificates.k8s.io API are signed by a <a href="https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/#configuring-your-cluster-to-provide-signing" rel="nofollow noreferrer">dedicated CA</a>. It is possible to configure your cluster to use the cluster root CA for this pu... | Hemanth Kumar |
<p>I want to restart my Kubernetes pods after every 21 days I want probably a crone job that can do that. That pod should be able to restart pods from all of my deployments.
I don't want to write any extra script for that is that possible ?
Thanks you .</p>
| Rohit W | <p>If you want it to run every 21 days, no matter the day of month, then cron job doesn't support a simple, direct translation of that requirement and most other similar scheduling systems.</p>
<p>In that specific case you'd have to track the days yourself and calculate the next day it should run at by adding 21 days t... | Hemanth Kumar |
<p>I have followed the quickstart of ArgoCD documentation <a href="https://argo-cd.readthedocs.io/en/stable/#quick-start" rel="nofollow noreferrer">https://argo-cd.readthedocs.io/en/stable/#quick-start</a></p>
<p>The only difference is that I deployed in <code>argo-cd</code> namespace instead of <code>argocd</code>.</p... | Vitor Nilson | <p><code>ERR_TOO_MANY_REDIRECTS</code> is an error message, a browser returns when it fails to load webpage content due to a redirect loop. A redirect loop occurs when a requested page redirects to another page and the second page redirects back to the origin. Follow this <a href="https://kubernetes.github.io/ingress-... | Hemanth Kumar |
<p>My 2 microservices are talking to each other via GRPC and I am using envoy proxy.
Microservice A is calling Microservice B and envoy container is inside Mircoservice A's pod.</p>
<p>My problem is that if because of any issue Microservice B pod crashed I dont get any error at A, its just keeps trying to establish con... | Afzal Khan | <p>In order to know the Status or Error when the microservice B is getting failed in Envoy Proxy has a feature called <strong><a href="https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/circuit_breaking#circuit-breaking" rel="nofollow noreferrer">Envoy Circuit Breaking.</a></strong> This stops se... | Hemanth Kumar |
<p>I tried with the below command but it provides only the created date. How do I get when was it last updated?</p>
<pre><code>kubectl describe hpa -n xyz hpa-hello
</code></pre>
<p>Example: Today I create a hpa with max replica 3 and tomorrow I apply the same yaml but with max replica 6. If I do that, I can see only t... | Arun Prakash Nagendran | <p>I Assume here that the last updated date or time nothing but when was last auto scaled?
To get details about the Horizontal Pod Autoscaler, you can use kubectl get hpa with the -o yaml flag. The status field contains information about the current number of replicas and any recent autoscaling events.</p>
<pre><code>k... | Hemanth Kumar |
<p>How to get Kubectl get po -o yaml in golang</p>
<p>it to run this code
<a href="https://github.com/kubernetes/client-go/tree/master/examples/out-of-cluster-client-configuration" rel="nofollow noreferrer">Go client example</a></p>
<p>where the expected output is</p>
<pre><code>./app
There are 3 pods in the cluster
Th... | Pradeep Padmanaban C | <p>This might be due to your k8s client/server version being higher than 1.24+
<a href="https://github.com/aws/aws-cli/issues/6920" rel="nofollow noreferrer">https://github.com/aws/aws-cli/issues/6920</a> Please refer this for further clarification</p>
| Janakiraman Ragunathan |
<p>we have a batch data processing script inside a container and want to check it is alive and actually working or whether it should be restarted.</p>
<p>It is PHP command line script and doesn't expose any kind of server. Currently running in Docker soon in Kubernetes.</p>
<p>How can we monitor liveness of such script... | Jindra | <p>You can use liveness probe <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-a-liveness-command" rel="nofollow noreferrer">command</a> to check whether process is alive or not. Below the sample from k8s documentation. You can write small script to ... | Nataraj Medayhal |
<p>I am following <a href="https://aws.amazon.com/blogs/containers/building-a-gitops-pipeline-with-amazon-eks/" rel="nofollow noreferrer">Building a GITOPS pipeline with EKS</a>.</p>
<p>After <code>flux create source</code> and <code>flux create kustomization</code></p>
<p>my fleet-intra repo</p>
<pre><code>tree -L 3
.... | Richard Rublev | <p>In the <a href="https://github.com/weaveworks/guestbook-gitops/blob/master/deploy/kustomization.yaml" rel="nofollow noreferrer">link</a> you had shared there sample kustomization yaml. you can prepare kustomize yaml in similar manner and check it.</p>
| Nataraj Medayhal |
<p>I used the following guide to set up my chaostoolkit cluster: <a href="https://chaostoolkit.org/deployment/k8s/operator/" rel="nofollow noreferrer">https://chaostoolkit.org/deployment/k8s/operator/</a></p>
<p>I am attempting to kill a pod using kubernetes, however the following error:</p>
<pre><code>HTTP response bo... | Kenny Jefferson | <p>Error which is shared is using default service account "choastoolkit". Look like the role associated might not proper permissions.</p>
<p>The service account "test-user" which is been used in ChaosToolkitExperiment defintion should have proper role access to delete pod.</p>
<p>Please specify pr... | Nataraj Medayhal |
<p>I have 2 AKS clusters, Cluster 1 and Cluster 2 both running Istio 1.14 minimal out-of-the-box (default configs).</p>
<p>Everything on Cluster 1 works as expected (after deploying Istio).</p>
<p>On Cluster 2, all HTTPS outbound connections initiated from my services (injected with istio-proxy) fail.</p>
<pre><code>cu... | Bogdan993 | <p>You are correct. By default ALLOW_ANY is value set for meshConfig.outboundTrafficPolicy.mode. This can be verified in the cluster by running below command.</p>
<pre><code>kubectl get configmap istio -n istio-system -o yaml | grep -o "mode: ALLOW_ANY"
</code></pre>
<p>Please also refer the <a href="https:/... | Nataraj Medayhal |
<p>I have a container image that already has the <code>index.html</code> file. My goal is to pick that <code>index.html</code> update it (using simple placeholder replacement) and then put it back.</p>
<p>I am trying to use the <code>initContainer</code> for the same. But somehow it's not working out for me.</p>
<p>Her... | Kalpesh Patel | <p>For initcontainer can you please check with below. If required correct the sed statement</p>
<pre><code> command: ["/bin/sh", "-c", "cp /usr/share/nginx/html/index.html /remoteDir && sed -i 's#<base href=\"./\">#<base href=\"/my-base/\">#' /remoteDir/i... | Nataraj Medayhal |
<p>I'm trying to set up balancing between applications in different namespaces with Istio. But I am always getting reply from one application in dev namespace. My point is get response from applications from same prefix, like: <a href="http://example.com" rel="nofollow noreferrer">http://example.com</a> - need to balan... | Валерий Сиволапенко | <p>As the hosts "xxx.elb.amazonaws.com" value in different gateway definitions of different namespace is same for the "istio-nginx" service. So only one routing rule would have got applied. So the requests would be serviced from single application. For more details on routing rule precedence can ... | Nataraj Medayhal |
<p>I am having a following working SFTP Deployment in my Kubernetes:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: sftp-deployment
spec:
replicas: 1
selector:
matchLabels:
app: sftp
template:
metadata:
labels:
app: sftp
spec:
volumes:
- name: sft... | f.bele | <p>Please do below changes in application gateway, virtual service and istio ingress gateway. As the ports in objects arent matching the requests wont get routed properly. Below changes are mentioned based on nodeport if LB is used kindly adjust it accordingly.</p>
<p>Gateway:</p>
<pre><code>apiVersion: networking.is... | Nataraj Medayhal |
<p>I'm trying to deploy a docker container with a python app to Azure Kubernetes Service. After deploying and looking at the logs on the new pod, I see this error:</p>
<blockquote>
<p>exec /usr/bin/sh: exec format error</p>
</blockquote>
<p>I'm building the container on a mac using the following docker buildx command:<... | Sanjeev | <p>Below error will come when an container is getting executed in an architecture which are not built for.</p>
<blockquote>
<pre><code>exec /usr/bin/sh: exec format error
</code></pre>
</blockquote>
<p>The default value will be the value of os arch where buildkit is running. More details how to build images for other ... | Nataraj Medayhal |
<p>basic question, I have the following LB:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: my-lb
spec:
type: LoadBalancer
ports:
- name: my-udp-port
port: 54545
protocol: UDP
selector:
app: my-app
</code></pre>
<p>And for some reason the traffic is not distributed equally (single pod ... | MTZ4 | <p>When an resource is created as "LoadBalancer" service type in k8s by default it doesn't offer load balancing. If you are looking for proper load balancing then this service needs to be associated with external load balancer of the cloud provider. For more details please refer <a href="https://kubernetes.... | Nataraj Medayhal |
<p>I need some help in understanding how we implement service discovery for microservices in kubernetes.</p>
<p>Im going through some tutorials on spring boot and noticed that wr need to use Eureka discovery for implementing service discovery for maintaining communication b/w microservices. But my question is if we dep... | Mahendra Gayam | <p>Kubernetes orchestration platform provides <a href="https://kubernetes.io/docs/tasks/administer-cluster/coredns/" rel="nofollow noreferrer">CoreDNS</a> for Service discovery. Micro services when they get deployed to the platform can utilise the services by default no need to implement it unless if there is specific... | Nataraj Medayhal |
<p>I have setup VirtualService and ServiceEntry for a few services outside my kubernetes cluster.<br />
My apps can access them without any issue.<br />
I was wondering if it would be somehow possible to perform a port-forward to these services via <code>kubectl</code>, similar to how you would port-forward into a pod ... | Alex Weitz | <p>Port forwarding can be done to istio-ingressgateway service but not to virtual service. More details of service and virtual service of istio are in their <a href="https://istio.io/latest/docs/reference/config/networking/virtual-service/" rel="nofollow noreferrer">official documentation</a></p>
<p>One more option is ... | Nataraj Medayhal |
<p>I am mounting db secrets as a file in my Kubernetes container. Db secrets will get updated after the password expiry time. I am using polling mechanism to check if Db secrets has been reset to updated value. Is it possible to change mounted secret inside file.</p>
| Ambuj Kumar | <pre><code>is secret mounted as file is editable from application code in kubernetes
</code></pre>
<p>The file which gets loaded into the container will be loaded in readonly format, so loaded file can't be edited from inside the container. But secret can be edited from either updating the secret or copying the file i... | Nataraj Medayhal |
<p>i am trying to lunch a new pod from in side another pod using Kubernetes cluster, but when trying this following error message could seen in the ,</p>
<p>Failed to pull image "dhammikalks/node": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/dhammikalks/node:latest":... | duke_92 | <p>Easy option to overcome docker rating limiting problem is to have the image stored in private repo. There are different articles to understand how docker rate limiting works. For this you wouldn't require docker login commands inside the container.</p>
<p>Please use kubernetes secrets if required to supply login c... | Nataraj Medayhal |
<p>We use a headless service to balance traffic, but progers do not like this option. Installed istio, I read the documentation, but my eyes run wide.</p>
<p>Now the task is:
Balance traffic to the service, in my case: <code>results-service2.predprod.svc.cluster.local</code></p>
<p>Do I understand correctly that it is ... | Maksim | <p>Istio destination rule is place to define service load balancing algorithm. By default istio uses "LEAST_REQUEST" as LB algorithm. "LEAST_CONN" is deprecated algorithm. More details are mentioned in <a href="https://istio.io/latest/docs/reference/config/networking/destination-rule/#LoadBalance... | Nataraj Medayhal |
<p>Currently when I apply stateful set then pods are getting created with ab-app-0, ab-app-1 , ab-app-2</p>
<p>But I want pods like ab-app-1000, ab-app-1001</p>
| SkClass | <p>The <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#ordinal-index" rel="nofollow noreferrer">Kubernetes documentation on StatefulSet</a> says the following about ordinal index:</p>
<blockquote>
<p>For a StatefulSet with N replicas, each Pod in the StatefulSet will be assigned an integ... | viggnah |
<p>I want to configure an EnvoyFilter to run only on Gateway and Sidecar-Inbound. Gateway and the Apps are in different namespaces.</p>
<p>If I specify the context as ANY, it will apply to Gateway, Sidecar-inbound and sidecar-outbound. However, I want it to apply only to Gateway and Sidecar-Inbound. how can I do that?<... | Jerald Baker | <p>The <code>context</code> is an <a href="https://istio.io/latest/docs/reference/config/networking/envoy-filter/#EnvoyFilter-PatchContext" rel="nofollow noreferrer">enum</a> so you can't do something like <code>[GATEWAY, SIDECAR_INBOUND]</code>. Therefore, unfortunately you will need to create another element inside <... | viggnah |
<p>I want to share a volume across pods in a node in GKE.</p>
<p>I am using Terraform to provision all of this and using GKE autoscaling but no auto-provsioning.</p>
<pre><code>cluster_autoscaling {
enabled = false
autoscaling_profile = var.aggresive_node_autoscale ? "OPTIMIZE_UTILIZATION"... | chamini2 | <blockquote>
<p>Sharing a local volume across pods in GKE with autoscaling</p>
</blockquote>
<p>Sharing a local volume across pods in GKE with auto scaling is impossible as the Autoscaler cluster has some <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler#limitations" rel="nofollow nor... | Sai Chandini Routhu |
<p>I am diving into K8s and deployed my first pod via <code>kubectl apply</code> on the master node. In order to check its status, I called <code>kubectl get pods</code> twice in a row. I did not touch anything, but a subsequent call of the same command failed with the error below. Can anyone help me understand what ma... | Daniel Stephens | <p>As explained in this <a href="https://www.thegeekdiary.com/troubleshooting-kubectl-error-the-connection-to-the-server-x-x-x-x6443-was-refused-did-you-specify-the-right-host-or-port/" rel="nofollow noreferrer">doc</a> by Greek Diary ‘admin’ which explains how to fix the kubectl error:<code>The connection to the serve... | Sai Chandini Routhu |
<p>I'm a little confused why my <code>rancher-agent</code> is no longer able to connect to the cluster server. This was working for me for a long time, but it appears to have broken on its own. DNS and networking confuses me.</p>
<p>My setup:</p>
<ul>
<li>OS: <code>Ubuntu 20.04.6 LTS</code></li>
<li>Docker: <code>Docke... | RommelTJ | <p>As explained in this official <a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/#tls-certificate-errors" rel="nofollow noreferrer">doc</a></p>
<blockquote>
<p><strong>The following error “Unable to connect to the server: x509:
certificate signed by unknown author... | Sai Chandini Routhu |
<p>I have followed this <a href="https://thechief.io/c/cloudplex/what-kubeflow-and-how-deploy-it-kubernetes/" rel="nofollow noreferrer">doc</a> to deploy kubeflow on gke</p>
<blockquote>
<p>Error:404 page not found</p>
</blockquote>
<p>when Accessing Central dashboard</p>
<p>Try to deploy multiple times but still getti... | Martin rudez | <p>As per this official <a href="https://v0-5.kubeflow.org/docs/gke/troubleshooting-gke/#404-page-not-found-when-accessing-central-dashboard" rel="nofollow noreferrer">doc</a>, try below troubleshooting steps to resolve your error :</p>
<blockquote>
<p>This section provides troubleshooting information for 404s, page no... | Sai Chandini Routhu |
<p>What is the reason of this error?</p>
<p>How to fix this above error?</p>
<p>I try to resolve this error but getting same error again and again</p>
<p>I'm new to kubernetes so I need your help</p>
<p>Error :when deploying a pod image pull back off error in gke</p>
| Martin rudez | <p>As David Maze mentioned "The name you specified in image: doesn't exist on the node where it's being run, and it can't be fetched from Docker Hub or the registry named in the image name”</p>
<p>As per this official <a href="https://cloud.google.com/kubernetes-engine/docs/troubleshooting#ImagePullBackOff" rel... | Sai Chandini Routhu |
<p>I'm trying to use client-go informers to get the replica count on deployments. Whenever autoscaling changes the number of replicas, I need to retrieve this in order to handle some other logic. I was previously using the Watch() function, but there are a few inconsistencies with timeouts and connection drops.</p>
<p>... | Syd | <p>A few things to note:</p>
<ul>
<li>Before calling <code>informerFactory.Start()</code>, ensure that the Informer is called directly(<code>informer := factory.Apps().V1().Deployments().Informer()</code>) or <code>Start()</code> wont start anything.</li>
<li>Using a goroutine to start the SharedInformerFactory is mean... | Syd |
<p>I was under the impression that the main point of cluster-issuer is that its namespaced and doesn't have to be recreated across different resources, in general there could be one main cluster-issuer that will manage all ingresses across the cluster.</p>
<p>From what I am seeing the cluster-issuer can only create one... | Elazar | <p>@Harsh Manvar while I do appreciate your anwser I found something that is a better suit for my needs.</p>
<p><a href="https://cert-manager.io/docs/tutorials/syncing-secrets-across-namespaces/" rel="nofollow noreferrer">Cert-manager documentation</a> contains multiple options to sync secrets across namespaces</p>
<p>... | Elazar |
<p>I have a deployment in Kubernetes that takes advantage of HorizontalPodAutoscaler. What are the recommended or typical settings for averageUtilization for CPU and Memory? I'm running a FastAPI and React image within each pod and wanted to know what experiences you all have had in production environments for the aver... | Dan | <p>If there are no sudden requests on your pod, 70% is a good number. As it may also take time for the additional pods to be ready and existing pods may be fully utilized before the scaled up pods are ready.<br><br>When set to 50, it will scale up faster in the event of a sudden burst requests on your FastAPI and React... | Siegfred V. |
<p>I am migrating from ingress to gateway on GKE and wondering if there are things I could keep from the old configuration or if I have to start from zero with GW.
Also, I use envoy proxy, do I need a specific one per route?</p>
| Xola | <p>If your concern is related to the GKE Gateway controller. I recommend checking this <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/gateway-api#comparison_of_ingress_and_gateway" rel="nofollow noreferrer">Comparison of Ingress and Gateway</a>. This explains how Gateway is an evolution of Ingress an... | salvinojr |
<p>So, I started out trying to fix what was supposed to be a simple issue on my company's website. The HTTP was not redirecting to the HTTPS.</p>
<p>To try to resolve this, I tried deleting the HTTPS load balancer so that I could recreate it with the redirect.</p>
<p>However, now, 3 days later, another developer and m... | Justin Lloyd | <p><strong>Note</strong>: Make sure your domain is accessible via https and Google managed certificate is already in Active status and fully propagated. Also, <strong>these steps are part of the troubleshooting steps. It was posted as an answer since it won't fit in the comment section</strong>. If you have questions o... | salvinojr |
<p>We need to reach out to connect to Master nodes which is quite feasible via network policy with required IPs however it requires IPs of master node to be configured within it.</p>
<p>Issue is that IPs of master node can be changed (not frequent but it can happen due to some changes) thus we would like to lock it dow... | arjain13 | <p>You might want to consider using DNS resolution. You can start this by using this <a href="https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/" rel="nofollow noreferrer">link</a> you can use DNS names in your application instead of IP addresses to connect in your master node. Another way I be... | Yvan G. |
<p>I've follwed the steps at <a href="https://docs.docker.com/get-started/kube-deploy/" rel="nofollow noreferrer">https://docs.docker.com/get-started/kube-deploy/</a> to enable Kubernetes in Docker Desktop for Mac. I can run some commands like <code>kubectl apply</code> and <code>kubectl get</code>, but other commands ... | rcorre | <p>You may check this reference <a href="https://forums.docker.com/t/enable-docker-commands-run-without-sudo/135671/14" rel="nofollow noreferrer">forum</a> and as per rimelek,</p>
<p>They recommended running the command</p>
<blockquote>
<p>chmod +xr /usr/local/bin</p>
</blockquote>
<p>After rebooting Docker, Kubernetes... | Dion V |
<p>I have been trying to deploy spark and jupyter note on minikube. I used helm charts for deploying both</p>
<p>Jupyter notebook - <a href="https://artifacthub.io/packages/helm/pyspark-notebook-helm/pyspark-notebook" rel="nofollow noreferrer">https://artifacthub.io/packages/helm/pyspark-notebook-helm/pyspark-notebook... | Abhishek | You can check the <a href="https://spark.apache.org/docs/latest/running-on-kubernetes.html#prerequisites" rel="nofollow noreferrer">prerequisites</a> when running Spark in Kubernetes to determine if it will increase its performance</p>
A running Kubernetes cluster at version >= 1.22 with access configured to it us... | Dion V |
<p>I have a Minikube instance installed on an Ubuntu VM (Digital Ocean). I have also configured ingress for one my deployments but when I curl the hostname I am getting an error :</p>
<pre><code>curl myserver.xyz
curl: (7) Failed to connect to myserver.xyz port 80: Connection refused
</code></pre>
<p>My deployment :</p... | Golide | <p>Per @jordanm</p>
<blockquote>
<p>If you use service type of LoadBalancer, you connect to the load balancer IP, not to the VMs IP. If you want to connect directly to the VM, your nginx ingress should be a service type of NodePort.</p>
</blockquote>
| James S |
<p>When using the google cloud console, I can navigate to my GKE cluster in the browser and see/edit the "control plane authorized networks" like this:</p>
<p><a href="https://i.stack.imgur.com/H5BaR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H5BaR.png" alt="enter image description her... | Johan | <p>At the moment, it is not possible to specify a display name when adding a new master authorized network or when modifying an existing one using the gcloud command. A workaround would be to do it through the console.</p>
<p>To <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks#add" re... | James S |
<p>I'm running the following cronjob in my minikube:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: batch/v1
kind: CronJob
metadata:
name: hello
spec:
schedule: "* * * * *"
concurrencyPolicy: Allow
suspend: false
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
jobTempl... | Nrgyzer | <p>It seems it's a Kubernetes bug: <a href="https://github.com/kubernetes/kubernetes/issues/53331" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/53331</a>.</p>
| boyan7640 |
<p><a href="https://i.stack.imgur.com/D5fPZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/D5fPZ.png" alt="enter image description here" /></a></p>
<p>I have been trying to setup minikube but the command is stuck at pulling base image since forever</p>
| Sumit Mukharjee | <p>It's not stuck; it is just not showing the output of the downloading progress. It's an 800 MB file, it takes time to download.</p>
<p>See <a href="https://github.com/kubernetes/minikube/issues/7012" rel="noreferrer">https://github.com/kubernetes/minikube/issues/7012</a></p>
| Jaskaran S |
<p>I'm trying to migrate Several spring boot services to EKS and they can't retrieve aws credentials from credentials chain and pods are failing with following error: <code>Unable to load credentials from any of the providers in the chain AwsCredentialsProviderChain</code></p>
<p>These are what I've tried so far:</p>
<... | Elshan Akbarov | <p>Problem was fixed.</p>
<p>Main issue was conflicting AWS SDK BOM version with individual models. Also previous version of BOM I was using wasn't supporting AWS SDK v2.x .</p>
<p>These are the main take aways from the issue:</p>
<ol>
<li><p>AWS SDK authenticate services using <a href="https://docs.aws.amazon.com/sdk-... | Elshan Akbarov |
<p>I am trying to create a path in a GKE ingress like this: /organizations/''/entity/''/download.</p>
<p>NOTE: The '' above represents a wildcard (*)</p>
<p>The values after organizations/ and after entity/ are dynamic so I have to use two wildcards, but this is not working, the first wildcard after the /organizations... | Leart Beqiraj | <p>The only supported wildcard character for the path field of an Ingress is the * character. The * character must follow a forward slash (/) and must be the last character in the pattern. For example, /<em>, /foo/</em>, and /foo/bar/* are valid patterns, but <em>, /foo/bar</em>, and /foo/*/bar are not.</p>
<p>Source (... | Leart Beqiraj |
<p>I am trying to install kubeflow from branch master from manifests, using the command</p>
<pre><code>while ! kustomize build example | awk '!/well-defined/' | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 10; done
</code></pre>
<p>I am using kubernetes 1.24 from rancher desktop:</p>
<pre>... | yoshcn | <p>Yes,</p>
<p>after further research I found that the image I need, is not available for macos m1. I need a full virtualization in order to make it work.</p>
| yoshcn |
<p>I'm currently trying to autoscale my tcp services with kubernetes.
I'm not using cloud infrastructure(amazon, aws..etc) so i use haproxy for load balancing.
my tcp service isn't http protocol so i added my services with --configmap-tcp-services argument.</p>
<pre><code> apiVersion: apps/v1
kind: Deployment
... | ChuYong | <p>Have you checked the ingress logs ?
I can see that your service is in the default namespace, not in the cosmoage</p>
<p>Try using this configmap instead:</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
name: tcp-services
namespace: default
data:
"9000": default/prokittest:25565
</code></pre>
| Ben Mansour Med Rafik |
<p>I can't find where the kubelet logs are located for Docker Desktop (Windows). There's a similar question <a href="https://stackoverflow.com/questions/34113476/where-are-the-kubernetes-kubelet-logs-located">here</a>, but the answers all refer to linux/kind installs of kubernetes.</p>
| CJ Virtucio | <p><em>I get that this is an old question, but it does seem to get some traffic, has no accepted answer and is the only of this kind on SO - here is my take on this problem and a solution:</em></p>
<h2>The process</h2>
<p>As already pointed out by @acid_fuji, everything is running inside a VM we need to access, to get ... | bitmeal |
<p>So I was going to set up a GKE cluster and interact it with <code>kubectl</code>. But when I tried to apply the namespace, it just threw an error.</p>
<p>I've added my IP to Control plane authorized networks in GKE dashboard.</p>
<p>I'm using a Windows 10 machine, my kube/config</p>
<pre class="lang-yaml prettyprint... | ImRopoxPro | <strong>Looks kubectl lost connection to the Cluster and you can set the Cluster context by following the official GCP troubleshooting doc <a href="https://cloud.google.com/kubernetes-engine/docs/troubleshooting#kubectl-times-out" rel="nofollow noreferrer">GCP kubectl command times out</a>, try below two solutions... | Veera Nagireddy |
<p>I have been getting alerts that a few APIs were deprecated in v1.22 of Kubernetes cluster in GCP and so I changed all of my deployments and nginx controllers to version apps/v1 and networking.k8s.io/v1 . But my cluster still shows that there are some components using the deprecated api's.
The error on the pod is -</... | Jainam Shah | <p>The root cause of the issue is that the <strong>NGINX Controller has to be compatible with the kubernetes version</strong>.</p>
<p><strong>Follow resolutions steps below :</strong></p>
<ol>
<li><p>Check the version of NGINX.</p>
</li>
<li><p>Check Kubernetes version GKE console in GCP UI.</p>
</li>
<li><p>Confirm th... | Veera Nagireddy |
<p>After upgrading Kubernetes node pool from 1.21 to 1.22, ingress-nginx-controller pods started crashing. The same deployment has been working fine in EKS. I'm just having this issue in GKE. Does anyone have any ideas about the root cause?</p>
<p><code>$ kubectl logs ingress-nginx-controller-5744fc449d-8t2rq -c contro... | cosmos-1905-14 | <p>The Beta API versions (<code>extensions/v1beta1 and networking.k8s.io/v1beta1</code>) of <code>Ingress</code> are no longer served (removed) for GKE clusters created on versions 1.22 and later. Please refer to the official <a href="https://cloud.google.com/kubernetes-engine/docs/deprecations/apis-1-22#ingress-v122" ... | Veera Nagireddy |
<p>I have one api, which will run about 4 minutes. I have deployed it on kubernetes with ingress-nginx. All api work normally except the long-run api, it always return 504 Gateaway as below:
<a href="https://i.stack.imgur.com/zBS9z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zBS9z.png" alt="enter... | miemengniao | <p><strong>Typo</strong></p>
<p>Replace below (ingress config):</p>
<pre><code>nginx.ingress.kubernetes.io/proxy-next-upstream-timeout: "5"
nginx.ingress.kubernetes.io/proxy-next-upstream-tries: "1"
</code></pre>
<p>In place of (ingress config)</p>
<pre><code>nginx.ingress.kubernetes.io/proxy_next_u... | Veera Nagireddy |
<p>I have a production cluster is currently running on K8s version <code>1.19.9</code>, where the kube-scheduler and kube-controller-manager failed to have leader elections. The leader is able to acquire the first lease, however it then cannot renew/reacquire the lease, this has caused other pods to constantly in the l... | janeosaka | <p>@<strong>janeosaka</strong>, you are right This problem occurs when you have a <code>1)resource crunch</code> or <code>2)network issue</code>.</p>
<p>It seems the leader election API call is getting timeout as Kube API Server had a resource crunch and it has increased the latency of API calls.</p>
<p><strong>1)Reso... | Veera Nagireddy |
<p>I am trying to install PGO operator by following <a href="https://access.crunchydata.com/documentation/postgres-operator/5.3.0/quickstart/#installation" rel="nofollow noreferrer">this</a> Docs. When I run this command</p>
<pre><code>kubectl apply --server-side -k kustomize/install/default
</code></pre>
<p>my Pod run... | tauqeerahmad24 | <p>If this is a new deployment, I suggest using <a href="https://access.crunchydata.com/documentation/postgres-operator/v5/" rel="nofollow noreferrer">v5</a>.</p>
<p>That said, as PGO manages the networking for Postgres clusters (and as such, manages listen_adresses), there's no reason to modify the listen_addresses co... | Veera Nagireddy |
<p>I'm trying to deploy a react app on my local machine with docker-desktop and its kubernetes cluster with <strong>bitnami apache helm chart</strong>.<br/>
I'm following this <a href="https://docs.bitnami.com/tutorials/deploy-react-application-kubernetes-helm/" rel="nofollow noreferrer">this tutorial</a>.<br/>
The tut... | Sergio Arrighi | <p>**Use the full path in the command as mentioned below to copy local files to POD : *</p>
<pre><code>kubectl cp apache-pod:/var/www/html/index.html /tmp
</code></pre>
<p>*<em>If there are multiple containers on the POD, Use the below syntax to copy a file from local to pod:</em></p>
<pre><code>kubectl cp /<path-to... | Veera Nagireddy |
<p>I know that the kubelet reports that the node is in diskpressure if there is not enough space on the node.<br />
But I want to know the exact threshold of diskpressure.<br />
Please let me know the source code of the kubelet related this issue if you could.<br />
Or I really thanks for your help about the official d... | JAESANGPARK | <p>Disk pressure is a condition indicating that a node is using too much disk space or is using disk space too fast, according to the thresholds you have set in your Kubernetes configuration.</p>
<p>DaemonSet can deploy apps to multiple nodes in a single step. Like deployments, DaemonSets must be applied using kubectl ... | Veera Nagireddy |
<p>I am trying to install PGO (Postgres Operator) in k8s. I am following <a href="https://access.crunchydata.com/documentation/postgres-operator/5.3.0/quickstart/" rel="nofollow noreferrer">this</a> documentation.
At the 2nd step when I run following command</p>
<pre><code>kubectl apply --server-side -k kustomize/insta... | tauqeerahmad24 | <p><strong>To fix your issue make sure kubectl integration like below :</strong></p>
<p>As <strong>@Ralle</strong> commented, Check versions. <strong>Kustomize v2.1.0 and v3.0.0+, and is included in kubectl 1.21+</strong>, for more information please look at the <a href="https://github.com/kubernetes/kubernetes/issues/... | Veera Nagireddy |
<p>I'm using <code>HA-Proxy</code> (Independent server) and <code>Kubernetes v1.25.4</code> cluster (One master and three workers) bare metal based.</p>
<p>I have deployed <code>Jenkins</code> and<code>Nginx ingress controller</code> with help of this <a href="https://docs.nginx.com/nginx-ingress-controller/installatio... | user4948798 | <p>For me its looks, like your request is not reaching to Nginx container itself. so try below mentioned options.</p>
<p>As Nginx-ingress runs as a daemon set, so Nginx container ports 80 and 443 are mapped with the 80 and 443 ports of the host. so you can use http://{node-IP} to connect to Nginx container. You can mak... | Pankaj K |
<p>i am struggling to create a custom subject when receiving alerts from my AlertManager, i am doing it with manifest file:</p>
<pre><code>apiVersion: monitoring.coreos.com/v1alpha1
kind: AlertmanagerConfig
metadata:
name: my-name
labels:
alertmanagerConfig: email
alertconfig: email-config
spec:
route:
... | Blackhat | <p>Hi @Blackcat from this <a href="https://www.suse.com/c/wp-content/uploads/2021/09/rancher_blog_07-rancher-alertmanager-status-tab.png" rel="nofollow noreferrer">example</a> I found that you might need to use Catipal 'S' for the subject under headers looks like we need to use first letter capital for the keys under h... | Dharani Dhar Golladasari |
<p>For example I have a role that gives permission to user get list of pods from specific namespace. And I have a clusterRole that gives permission to user get list of pods from all namespaces.</p>
<p>can user get all pods from all namespaces? or does role override clusterRole because role is more specific?</p>
<p>I kn... | Murat Cabuk | <p>In kubernetes <strong>ClusterRole</strong> takes precedence over the <strong>Roles</strong>. Because the <strong>Role</strong> is bound to a certain <strong>namespace</strong> whereas the ClusterRole is a <strong>non-namespaced</strong> resource. Whenever a user requests for resources, the kubernetes will check the ... | Dharani Dhar Golladasari |
<p>I have an <code>endpoints</code> that I can see via (for example) :</p>
<pre><code>kubectl get endpoints busybox-service
</code></pre>
<p>This endpoints is "backed" by a <code>service</code>:</p>
<pre><code>kubectl get services busybox-service
</code></pre>
<p>Is there a way for me via the <code>endpoints<... | Eugene | <p><strong>Endpointslice</strong> object may suit this kind of requirement as it has the <strong><code>ownerRefernce</code></strong> metadata and also the annotations like <code>kubernetes.io/servie-name</code> and <code>endpointslice.kubernetes.io/managed-by</code> which helps to get the source metadata.</p>
<ol>
<li>... | Dharani Dhar Golladasari |
<p>This is my Dockerfile:</p>
<pre><code>FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY ls .
COPY tail .
COPY test .
COPY manager .
ENTRYPOINT ["/manager"]
</code></pre>
<p>after</p>
<pre><code>[root@master go-docker-test]# docker build -t strangething:v1.13 .
[root@master go-docker-test]# docker run -d... | HelpMePlease | <p>After reading silh's comment and the kubebuilder <code>Dockerfile</code> again, I somehow solved this problem by adding <code>CGO_ENABLED=0</code> to <code>go build</code>. It changes dynamic linker to static linker.</p>
<pre><code>CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
</code></pre>
<p... | HelpMePlease |
<p>Getting error while configuring prometheus in azure kubernetes</p>
<p><a href="https://i.stack.imgur.com/8hbaD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8hbaD.jpg" alt="enter image description here" /></a></p>
| Punit kumar | <p><em>I tried to reproduce the same issue in my environment and got the below results</em></p>
<p><em>I have the cluster and I am trying to configure the Prometheus in azure Kubernetes and I got the successful deployment</em></p>
<p><img src="https://i.stack.imgur.com/U7EOF.png" alt="enter image description here" /></... | Komali Annem |
<p>We have upgraded our AKS to 1.24.3, and since we have, we are having an issue with containers refusing connection.</p>
<p>There have been no changes to the deployed microservices as part of the AKS upgrade, and the issue is occurring at random intervals.</p>
<p>From what I can see the container is returning the erro... | Andy Lynch | <p>I hit similar issue upgrading from 1.23.5 to 1.24.3, issue was configuration mis-match with kubernetes load balancer health probe path and ingress-nginx probe endpoints.</p>
<p>Added this annotation to my ingress-nginx helm install command corrected my problem: --set controller.service.annotations."service.beta... | Greg Henderson |
<p>I have a Kubernetes Cluster in an on-premise server, I also have a server on <a href="https://www.ncloud.com/" rel="nofollow noreferrer">Naver Cloud</a> lets call it <code>server A</code>, I want to join my <code>server A</code> to my Kubernetes Cluster, the server can join normally, but the <code>kube-proxy</code> ... | Rahandi Noor Pasha | <p>I had a similar issue in one of my nodes due to the container runtime being incorrectly configured. Please check the <code>containerd</code> configuration located at <code>/etc/containerd/config.toml</code> for specifying daemon level options.
The default configuration can be generated by running</p>
<pre><code>cont... | hyunfei |
<p>I want to create config map from file with key as value of variable from kubectl tool</p>
<p>However,</p>
<pre><code>MY_VARIBLE="something"
kubectl create configmap myconfigmap --from-file=${MY_VARIBLE}=myfile.json
</code></pre>
<p>does not return anything and configmap is not created</p>
<pre><code>kubect... | Кирилл Х | <p>Thank you all!
My real problem was that MY_VARIABLE had value with ":"
After replacing ":" with "-" everything started working correctly in any case from above</p>
| Кирилл Х |
<p>I want to deploy two apps "A" and "B" on our Kubernetes cluster (a first for me).</p>
<p>"A" handles traffic from outside the cluster and can request further data from "B" over http. "B" needs much more resources than "A" as it's CPU and Memory intensive.</... | MissouPower | <p>I presume you're just working with native Kubernetes resources, so the most simple way to do this would be to deploy your new backend <code>B</code> separately with different labels than the previous version. Once all pods are up, you simply change the service'es label selectors, this would instantly switch all the ... | Mike |
<p>I am new to K8S so please be gentle. I have a test hello world Flask app and I would like to deploy it on EKS. I am using the AWS load Balancer Controller Addon using the link below. At the end when I check the deployment it shows up without any issues as the link describes.
<a href="https://docs.aws.amazon.com/e... | zerobit | <p>Finally got it working. When I realized that the ALB was not created automatically I researched and found the solution. I had to remove the ingress.class value from the annotations as well as remove the host. So now my ingress looks like the following. After deleting the old ingress and reapplying this one, I wa... | zerobit |
<p>How can I find the version of the 'sriov' cni plugin installed on a Kubernetes cluster?</p>
<p>I've tried the commands below but they fail.</p>
<pre><code>/opt/cni/bin# ./sriov --version
{
"code": 4,
"msg": "required env variables [CNI_COMMAND] missing"
}
</code></pre>
| ss3071 | <p>The CNI Protocol parameters are passed to the plugins via OS environment variables.</p>
<p>CNI_COMMAND: indicates the desired operation; ADD, DEL, CHECK, GC, or VERSION.
Refer: <a href="https://github.com/containernetworking/cni/blob/main/SPEC.md#version-probe-plugin-version-support" rel="nofollow noreferrer">https:... | ss3071 |
<p>I'm running Airflow on Kubernetes using this Helm chart: <a href="https://github.com/apache/airflow/tree/1.5.0" rel="nofollow noreferrer">https://github.com/apache/airflow/tree/1.5.0</a></p>
<p>I've written a very simple DAG just to test some things. It looks like this:</p>
<pre><code>default_args={
'depends_on_... | Sahand | <p>That's the implementation. If you see the code for the operator it is basically a submit and forget job. To monitor the status you use SparkkubernetesSensor</p>
<pre class="lang-py prettyprint-override"><code> t2 = SparkKubernetesSensor(
task_id="spark_monitor",
application_na... | Islam Elsayed |
<p>I have a problem where i need to trigger multiple Pipelinerun's at same time where the runs will take longer the 1 hour. The global timeout for the PipelineRun is 1 hours by default so it fails. The team managing the Openshift cluster does not want to change the global timeout so I have to override it in some way.</... | linkebon | <p>You can specify a timeout in the PipelineRun:</p>
<pre><code>spec:
...
timeout: 12h0m0s
</code></pre>
<p>If you set it to 0, it will fail immediately upon encountering an error. For now it works on OpenShift Pipelines, but it might get deprecated <a href="https://tekton.dev/docs/pipelines/pipelineruns/#configuri... | miquelsi |
<p>I didn't get how I can restrict the access of custom resources in Openshift using RBAC</p>
<p>let's assume I have a custom api:</p>
<pre><code>apiVersion: yyy.xxx.com/v1
kind: MyClass
metadata:
...
</code></pre>
<p>Is it possible to prevent some users to deploy resources where <code>apiVersion=yyy.xxx.com/v1</cod... | Fabry | <p>You can use cluster roles and RBAC roles:</p>
<pre><code>oc adm policy add/remove-cluster-role-to-group oauth:system:authenticated
</code></pre>
<p>So the general idea is to remove the permission to deploy the resource to all the authenticated users.
The next step is to add the permission to deploy that resourse onl... | ffaf |
<p>I'm using Gradle as the build tool and I need to run helm commands like <code>helm repo add</code> inside a Gradle task. I have tried as below.</p>
<pre><code> exec {
workingDir = file("<Helm.exe location>")
CommandLine "helm.exe repo add"
}
</code></pre>
<p>But thi... | Gihan213 | <p>Gradle exec is not doing any processing to the arguments. If you supply <code>"repo add"</code> as argument, helm will receive one argument: <code>"repo add"</code>. This would be the same as calling <code>helm "repo add"</code> in the terminal. What you want to do is, supply two argume... | Leon |
<p><a href="https://i.stack.imgur.com/LxnEI.png" rel="nofollow noreferrer">Please click here for the screen shot</a>I'm trying to configure a replicaset for my podspec file in my minikube. My minikube version: v1.26.1. I couldn't figure, whether the issue is with my code or api resources.</p>
<p>this is my error: resou... | thoufeek | <p>It’s Replica<strong>S</strong>et … (capital S).</p>
| Christoph Dahlen |
<p>How to set some curl requests in yaml whit using curlimages/curl?
I get the error "Mark bundle as not supporting multiuse"</p>
<p>I tried these variants:</p>
<pre><code>apiVersion: batch/v1
kind: CronJob
metadata:
name: croncurl
spec:
schedule: "0 * * * *"
jobTemplate:
spec:
templ... | Evgen | <p>Use <code>-:</code></p>
<pre><code>command:
- /bin/sh
- -ec
- "curl -v http://{1} -: http://{2} -: http://{3}"
</code></pre>
| Tiyea |
<p>I use OpenSSL & generated self signed certificate & key files.</p>
<p>Now I try to transform them to base64 encoded value in order to put into kubernetes "Secret" manifest. I tried <a href="https://stackoverflow.com/questions/48341240/transform-ssl-crt-to-kubernetes-inline-format">the answer from t... | user842225 | <p>What kind of distro are you using? It seems that your <code>base64</code> binary is not the same program as used in your referenced answer.</p>
<p>On Ubuntu (20.04) it should work:</p>
<pre><code>base64 --help
Usage: base64 [OPTION]... [FILE]
Base64 encode or decode FILE, or standard input, to standard output.
With... | dijkdev |
<p>There is already two existing Network Policies present and one of which allows all the outbound traffic for all pods</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-default
namespace: sample-namespace
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
egress... | Vishwanath Joshi | <p>NetworkPolicies are additive, and they only have allow rules. So for each pod (as selected by podSelector), the traffic that will be allowed is the sum of all network policies that selected this pod. In your case, that's all traffic, since you have a policy that allows all traffic for an empty selector (all pods).</... | orisho |
<p>I have a old k8s cluster with 1 master and 2 workers node. It was shutdown for a long time. Now I started it. It had many running pods and deployments.
After restart the VM's all k8s command return</p>
<pre><code>The connection to the server 123.70.70.70:6443 was refused - did you specify the right host or port?
</c... | tauqeerahmad24 | <p>I really thankful for your time and effort. What worked for me is <a href="https://stackoverflow.com/questions/56320930/renew-kubernetes-pki-after-expired/56334732#56334732">this</a> stack overflow Answer along with some changes.</p>
<p>In my case when I was running <code>systemctl status kubelet</code> I see this ... | tauqeerahmad24 |
<p>I understand what a Cluster IP service is and everything, I just don't understand the 'behind the scenes' and routing. Can someone PLEASE explain it to me!</p>
<ol>
<li><p>A request is made to the Cluster IP service. If this service is serving multiple pods, how does the service choose which pod to send the request ... | jssteele89 | <p>Let me try my best to help you out. Cluster IP is not exposed to the outer network it is automated and K8s manage its traffic in the round-robin scheme. It also depends upon resources. Let's suppose you have one Frontend app and it has 4 pods with cluster-IP service running on 4 working nodes of k8s. These CLuster I... | tauqeerahmad24 |
<p>In my k3s cluster, I am editing a <code>Role</code> to add permission to a resource e.g. <code>deployment</code>.</p>
<pre><code>apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
creationTimestamp: "2023-09-02T08:00:23Z"
name: foo
namespace: default
resourceVersion: "432595"
... | user842225 | <p>Yes, you can consider that the left side of the <code>/</code> is always the apiGroup. <code>app/v1</code> indicates the <strong>REST API path</strong>, in general the api path looks like <code>/apis/$GROUP\_NAME/$VERSION</code> where app is the <a href="https://kubernetes.io/docs/reference/using-api/#api-groups" re... | Kranthiveer Dontineni |
<p>I am fairly new to Kubernetes. I am trying to figure out the best structure for a pod that requires configuration depending upon which pod requests its services.</p>
<p>So for example. Data Stream port might be 8080, this is a stream of data of unknown size. Data is processes as it is received. So I can't really u... | mazecreator | <p>Since you are trying to open multiple ports for the same service on the same pod, you can assign each port a different name. I’m providing you with a sample yaml file in which a service is communicating outside using both port 80 and port 443.</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: my-service
s... | Kranthiveer Dontineni |
<p>pinniped cli is not working in widnows.
pinniped-cli-windows-amd64.exe is downloaded but when i type pinniped, it's not recognized.</p>
<p>C:\Users\hello>pinniped
pinniped is not recognized as a internal command or external command, operable program or batch file.</p>
<p>Seem windows is not recognizing this .exe ... | Chai | <p>Hi <code>Chai</code> I have gone through the link and tried installing pinniped cli it throwed me same error, then I troubleshooted and found that pinniped cli’s executable file is not getting added to the path and we can run pinniped commands by executing the exe file, however everytime you need to go to the direct... | Kranthiveer Dontineni |
<p>I am using <code>NFS</code> <code>Persistent Volume</code> to create PV.</p>
<p>The reclaim policy being used in <code>persistentVolumeReclaimPolicy: Delete.</code></p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
name: pv001
spec:
capacity:
storage: 3Gi
volumeMode: Filesystem
accessModes:
... | meallhour | There are two types of PV configurations one is Static PV and the other is dynamic PV, if you have configured Static PV you need to delete both PVC and PV. For dynamic PV you just need to delete the PVC and then the PV will be released. From the manifest file you have provided it seems that you are using static PV, so ... | Kranthiveer Dontineni |
<p>So In our organization we use GKE(GCP) to configure and deploy everything. Most of our apps are java based apps. Hence by defining normal HPA, we face 2 issues.</p>
<ol>
<li>Say we scale up when we reach 70% of the total capacity for that app. Many times, the time delay provided for scale up is not sufficient for ne... | Sam M. | <p>There are many ways to reduce these issues. Firstly you need to get a better understanding of your application and perform load tests along with the security tests and other tests you perform on your application.</p>
<p>To do this you need to have various environments like testing, non-prod and production. Let’s say... | Kranthiveer Dontineni |
<p>I want to fetch cluster id using java spring kubernetes api. Is there a way to get it programmatically like we get pod information using below:</p>
<pre><code>ApiClient client = Config.defaultClient();
CoreV1Api api = new CoreV1Api(client);
String continuationToken = null;
V1PodList items = api.listPodForAllNamespa... | shiva kumar | <p>In <strong><a href="https://docs.spring.io/spring-cloud-open-service-broker/docs/3.1.0.RELEASE/apidocs/org/springframework/cloud/servicebroker/model/KubernetesContext.html" rel="nofollow noreferrer">kubernetes spring api documentation</a></strong> there is a detailed explanation provided for KubernetesContext class.... | Kranthiveer Dontineni |
<p>I'm having trouble deploying my fastapi app to a k8s container in GCP.
Even though I have green checkmark indicating its up and running my log shows this:<br />
<a href="https://i.stack.imgur.com/JKEzE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JKEzE.png" alt="enter image description here" />... | GustaMan9000 | <p>5xx errors such as 502 occur when the server is unable to process or serve the client’s request. This <a href="https://komodor.com/learn/how-to-fix-kubernetes-502-bad-gateway-error/" rel="nofollow noreferrer"><strong>blog</strong></a> written by Nir Shtein briefs about various points of failures, which can cause 5xx... | Kranthiveer Dontineni |
<p>I got a list in yml - credentials. And supposedly each bank has to have a different password that needs to be encrypted. What would be the right way to specify that? As of now I got it configured like this, but that doesn't work.</p>
<p>This is the config.yml</p>
<pre><code>infopoint:
endpoint: https://test.test.c... | JavaGeek | <p>Kubernetes secrets can be used or configured in applications in multiple ways for example configmaps, sealed secrets and environment variables. Since you got struck with the sealed secrets part I am providing an answer related to the same.</p>
<p>First we need to create a sealed secret in the same namespace with t... | Kranthiveer Dontineni |
<p>Developed a nextjs app and have deployed it to a kubernetes (AKS) cluster. The docker file looks pretty much identical to the sample nextjs docker files (see <a href="https://github.com/vercel/next.js/blob/v12.3.2/examples/with-docker/Dockerfile" rel="nofollow noreferrer">here</a>).</p>
<p>The pod manifest is nothin... | Umair Butt | <p>Ok, seems like running operations and the final command as nextjs USER as specified in the Dockerfile is the bit that's causing issues in kubernetes. Removing those and running as default, root user fixes the issues.</p>
| Umair Butt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.