prompt
stringlengths
65
38.7k
response
stringlengths
41
29.1k
<p>I am trying to configure Strimzi Kafka listener custom cert, following the documentation: <a href="https://strimzi.io/docs/operators/latest/full/configuring.html#ref-alternative-subjects-certs-for-listeners-str" rel="nofollow noreferrer">https://strimzi.io/docs/operators/latest/full/configuring.html#ref-alternative-...
<p>@Turing85 @Jakub</p> <p>Many thanks for your comments - especially those critical ones</p> <p>And thanks, Jakub, for pointing me towards using the CA of custom certificate. What needed to be done in order to fix this was:</p> <ol> <li>switch the value obtained from kafka-datalake-prod-cluster-ca-cert secret with the...
<p>I would like to install a helm release using argocd, i defined a helm app declaratively like the following :</p> <pre><code>apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: moon namespace: argocd spec: project: aerokube source: chart: moon2 repoURL: https://charts.aerokube.com/ ...
<p>Cleanest way to achieve what you want is using the remote chart as dependency:</p> <p>Chart.yaml</p> <pre><code>name: mychartname version: 1.0.0 apiVersion: v2 dependencies: - name: moon2 version: &quot;2.4.0&quot; repository: &quot;https://charts.aerokube.com/&quot; </code></pre> <p>And overriding its val...
<p>Inventory file (inventory/k8s.yaml):</p> <pre><code>plugin: kubernetes.core.k8s connections: - kubeconfig: ~/.kube/config context: 'cluster-2' </code></pre> <p>Task file (roles/common/tasks/main.yaml):</p> <pre><code># Method 1: Using `kubernetes.core` plugin to list the pod names: - name: Get a list of all po...
<p>You're trying to use both the kubernetes inventory plugin <strong>and</strong> the <code>k8s_info</code> module, and because of that you're getting conflicting results. The two don't have anything to do with each other.</p> <h2>The inventory module</h2> <p>The kubernetes inventory module is -- I think -- a weird bea...
<p>I tried to deploy the Kafka-UI in my local Kubernetes cluster, but ingress-nginx gives 502 error (Bad Gateway). I used the following configurations:</p> <p><strong>Deployment:</strong></p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <p...
<p>The main error was the port. The right port is 8080. This yaml works fine for me.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>apiVersion: apps/v1 kind: Deployment meta...
<p>I am wondering if <code>systemd</code> could be used as the <strong>cgroup driver</strong> in <strong>cgroup v1</strong> environment.</p> <p>NOTE: As mentioned in <a href="https://kubernetes.io/docs/setup/production-environment/container-runtimes/" rel="nofollow noreferrer">Kubernetes Container Runtimes Doc</a>, <co...
<blockquote> <p>NOTE: As mentioned in Kubernetes Container Runtimes Doc, cgroupfs is preferred when the OS have cgroup v1.</p> </blockquote> <p>Can you specify which paragraph is this? If not mistaken the document didn't state cgroupfs is preferred over systemd for distro that uses cgroup v1. systemd is widely accepted...
<p>I'm using Flink Kubernetes Operator 1.3.0 and need to pass some environment variables to a Python job. I have followed the <a href="https://github.com/apache/flink-kubernetes-operator/tree/release-1.3/examples/flink-python-example" rel="nofollow noreferrer">official documentation</a> and the example runs fine. How c...
<p>Found the solution.</p> <p>This is not detailed in the reference <a href="https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-0.1/docs/custom-resource/reference" rel="nofollow noreferrer">https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-release-0.1/docs/custom-resource/referenc...
<p>I want to watch changes to Pods continuously using the client-go Kubernetes SDK. I am using the below code to watch the changes:</p> <pre class="lang-golang prettyprint-override"><code>func (c *Client) watchPods(namespace string, restartLimit int) { fmt.Println(&quot;Watch Kubernetes Pods&quot;) watcher, err...
<p>In Watch, a long poll connection is established with the API server. Upon establishing a connection, the API server sends an initial batch of events and any subsequent changes. The connection will be dropped after a timeout occurs.</p> <p>I would suggest using an Informer instead of setting up a watch, as it is much...
<p>We've been looking at memory for capacity planning and have a Helm-deployed 8GB-limited QuestDB instance running on one of our k8s clusters.</p> <p>We recently began scraping metrics off of it. I'm trying to get to the bottom of the <code>questdb_memory_mem_used</code> metric, which occasionally sees excursions way ...
<p>According to the <a href="https://questdb.io/docs/third-party-tools/prometheus/" rel="nofollow noreferrer">documented Prometheus metrics</a> exposed by QuestDB, <code>questdb_memory_mem_used</code> includes all native memory allocations which may include virtual memory if it wasn't touched yet.</p> <p>This metric in...
<p>I have created pod with below pod definition which uses mongo official docker image. The expected result here is mongo docker creates user and pwd with env variables <code>MONGO_INITDB_ROOT_USERNAME</code> and <code>MONGO_INITDB_ROOT_PASSWORD</code> and then it will use <code>/etc/mongo/mongod.conf</code> provided ...
<p>As per this <a href="https://stackoverflow.com/questions/62018646/unable-to-authenticate-mongodb-deployed-in-kubernetes">SO</a> , As you said Post removing “command” from deployment file and it is working Because when you set MONGO_INITDB_ROOT_USERNAME and MONGO_INITDB_ROOT_PASSWORD ENV variables in your manifest....
<p>I'm moving my project to Kubernetes using Traefik for routing and MetalLB as my load balancer.</p> <p>I've deployed several apps and I'd like to make use of official <a href="https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/" rel="nofollow noreferrer">Kubernetes-Dashboard</a>. So I deploy...
<p>Found the answer here: <a href="https://stackoverflow.com/a/69999245/3883694">https://stackoverflow.com/a/69999245/3883694</a></p> <p>You can disable SSL certificate verification.</p> <p><a href="https://doc.traefik.io/traefik/routing/overview/#transport-configuration" rel="nofollow noreferrer">https://doc.traefik.i...
<p>Just curious if it is possible to execute a command inside <code>minikube</code> without doing <code>minikube ssh</code> and then executing the command.</p> <p>Something like:</p> <p><code>minikube ssh exec -it &lt;command&gt;</code></p>
<p>As of 2023, it is possible. Just run:</p> <pre><code>minikube ssh '&lt;command&gt;' </code></pre> <p>For example:</p> <pre><code>minikube ssh 'ls -la' </code></pre>
<p>Secret value is returning NIL</p> <p>When i run the command below to check the values in the secret</p> <pre><code>kubectl get secret cred2 -n service-b -o jsonpath='{.data.*}' | base64 -d </code></pre> <p>It returns a Nil value. How do i get the value that was passed on the values.yaml file?</p> <pre><code>{&quot;a...
<p>You should think of <code>template</code> (and the Helm-specific <code>include</code>) like function calls that take a single parameter. Here you're passing that parameter as <code>$</code>, a special variable that refers to the top-level object. You probably want <code>.</code>, which within a <code>range</code> ...
<p>In the Kubernetes documentation for controlling-access to the API server, under the <a href="https://kubernetes.io/docs/concepts/security/controlling-access/#authorization" rel="nofollow noreferrer">Authorization section</a> it says that authorization is controlled through a Policy.</p> <p>However, a Policy is not f...
<blockquote> <p>...under the Authorization section it says that authorization is controlled through a Policy.</p> </blockquote> <p>The sample you saw is a cluster that uses ABAC. From your screenshot your cluster is likely to use RBAC which access policy is not used.</p> <blockquote> <p>So what exactly is a Policy? How...
<p>I'm not sure how to phrase this so I apologize if the title of the question does not make sense to you.</p> <p>Due to various historical reasons, I have multiple teams contribute to the same code repo, that serves multiple service endpoints. Currently all teams deployments and releases are done together which create...
<p>Correct me if I'm wrong, but from the description of your problem it looks like you actually have two problems:</p> <ul> <li>The fact that you have separate services code in the same repo (team A and team B);</li> <li>The fact that you have several environments (development/production, for example)</li> </ul> <p>The...
<p>I want to add or copy files into persistent volume and then use it in container using volume mount ?any help</p>
<p>Once PVC/PV are created (<a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/storage/persistent-volumes/</a>), there are number of possible solutions.</p> <p>For specific question, options 1 and 2 will suffice. Listing more for refer...
<p>Is there anyone who uses argo cd on eks fargate?? It seems that there is an issue with Argo setup on Fargate. All pods are in <code>pending state</code></p> <p>I’ve tried installing on argocd namespace and existing ones. Still doesn’t work</p> <p>I tried to install it using the commands below:</p> <pre><code>kubectl...
<p>Make sure you have created a fargate profile with the namespace selector as <code>argocd</code>. It might be one of the issues.</p> <p>refer this <a href="https://docs.aws.amazon.com/eks/latest/userguide/fargate-getting-started.html#fargate-gs-create-profile" rel="nofollow noreferrer">https://docs.aws.amazon.com/eks...
<p>I have created a new EKS cluster with 1 worker node in a public subnet. I am able to query node, connect to the cluster, and run pod creation command, however, when I am trying to create a pod it fails with the below error got by describing the pod. Please guide.</p> <pre><code> Tolerations: node....
<p>it's due to the node's POD limit or <strong>IP</strong> limit on Nodes.</p> <p>So if we see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI" rel="nofollow noreferrer">official Amazon doc</a>, <strong>t3.micro</strong> maximum 2 interface you can use and <strong>2</strong...
<p>I'm trying to see if there's a way to apply a kustomize patchTransformer to a specific container in a pod other than using its array index. For example, if I have 3 containers in a pod, (0, 1, 2) and I want to patch container &quot;1&quot; I would normally do something like this:</p> <pre class="lang-yaml prettypri...
<p>You may have seen <em>JSONPath</em> syntax like this floating around the internet and hoped that you could select a list item and patch it using Kustomize.</p> <pre><code>/spec/containers[name=my-app]/command </code></pre> <p>As @Rico mentioned in <a href="https://stackoverflow.com/a/63928566/4785629">his answer</a>...
<p>What is the best way to allow CORS requests at this time? (Given that CORS support in the Contour Ingress currently is in the &quot;<a href="https://github.com/projectcontour/contour/issues/437" rel="nofollow noreferrer">parking lot</a>&quot;)</p> <p>My particular use case is hosting a GRPC service, which envoy reve...
<p>For anyone that stumbles upon this question trying to setup Controur, gRPC, and TLS;</p> <p>you want to use <code>HTTPProxy</code> instead. Working configuration with TLS:</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: projectcontour.io/v1 kind: HTTPProxy metadata: name: service-proxy spec: v...
<p>There's a working k8s configuration which uses the same port name in a pod and in a service. Here's a config part of the pod:</p> <pre><code>ports: - containerPort: 8000 name: app-port protocol: TCP </code></pre> <p>Here's a config part of the service:</p> <pre><code> ports: - name: app-port nodePort: 320...
<p>When you create the Service, it is associated with Pods selected by the label selector defined in the Service <code>spec.selector</code>.</p> <p>When a request is made to the Service, the Control Plane retrieves its <code>spec.ports[*].targetPort</code> value:</p> <ul> <li><p>If it does not exist, the value of <code...
<p>I am trying to create two ingress service, one which will expose the frontend to internet and 2nd which will connect backend to frontend. This is in <code>Minikube</code> and I have the <code>ingress addon</code> enabled.</p> <pre><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: angular-ingress...
<p>Given you have a service for your Angular app like this:</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: v1 kind: Service metadata: name: your-angular-app namespace: dev spec: selector: app: your-angular-app ports: - protocol: TCP port: 80 targetPort: 80 name: http...
<p>We have a EKS cluster running the 1.21 version. We want to give admin access to worker nodes. We modified the aws-auth config map and added <code>&quot;system:masters&quot;</code> for eks worker nodes role. Below is the code snipped for the modified configmap.</p> <pre><code>data: mapRoles: | - groups: -...
<p>During an issue such as this one, a quick way to get more details is by looking at the &quot;Health issues&quot; section on the EKS service page. As can be seen in the attached screenshot below, which has the same error in the description, there is an access permissions issue with the specific role <code>eks-quickst...
<p>There's a working k8s configuration which uses the same port name in a pod and in a service. Here's a config part of the pod:</p> <pre><code>ports: - containerPort: 8000 name: app-port protocol: TCP </code></pre> <p>Here's a config part of the service:</p> <pre><code> ports: - name: app-port nodePort: 320...
<p>Basically you will refer to the target port with the <strong>port number</strong>. But, you can give a name to each port mentioned in the pod configuration and use this name in the <strong>service</strong> to refer to the specified port. By this your <strong>service</strong> will be aware of which port it needs to c...
<p>From time to time all my pods restart and I'm not sure how to figure out why it's happening. Is there someplace in google cloud where I can get that information? or a kubectl command to run? It happens every couple of months or so. maybe less frequently than that.</p>
<p>Using below methods for checking the reason for pod restart:</p> <p>Use <code>kubectl describe deployment &lt;deployment_name&gt;</code> and <code>kubectl describe pod &lt;pod_name&gt;</code> which contains the information.</p> <pre><code># Events: # Type Reason Age From Message...
<p>We have elasticsearch cluster at <code>${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}</code> and filebeat pod at k8s cluster that exports other pods' logs</p> <p>There is <code>filebeat.yml</code>:</p> <pre><code>filebeat.autodiscover: providers: - type: kubernetes templates: - condition: ...
<p>In the end I've found out that elastic cluster's version used by company is much older than that of filebeat (8.1 against 7.9). So temporary allowing usage of older versions has solved the issue for time being.</p> <pre><code>output.elasticsearch: allow_older_versions: true </code></pre> <p>BUT @Paulo also had a...
<p>I am using an Ingress using Google-managed SSL certs mostly similar to what is described here:</p> <p><a href="https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs#setting_up_a_google-managed_certificate" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs#s...
<p>i don't think it's required to create SSL for the backend services if you are terminating the HTTPS at <strong>LB</strong> level. You can attach your certs to at LB level and the backed-end will be HTTPS &gt; HTTP.</p> <p>You might need to create <strong>SSL/TLS</strong> new cert in case there is diff version <code>...
<p>I'm trying to install the ingress-nginx controller via helm. When I run the install command on the <a href="https://kubernetes.github.io/ingress-nginx/deploy/#environment-specific-instructions" rel="nofollow noreferrer">Kubernetes website</a>, I get the error &quot;module 'glib' has no attribute 'get_user_config_dir...
<p>I had exactly the same problem when running helm via ansible.</p> <p>I checked the helm module I installed. It turned out I installed the wrong <a href="https://pypi.org/project/helm/" rel="nofollow noreferrer">helm</a> module: <strong>Helm is a system monitor released under GNU GPLv3.</strong></p> <p>Instead I had ...
<p>I need consume messages from Kafka. Application deployed in k8s pod. If I create some readiness probe to check pre-initialization steps are done or not, will k8s be able to control the consume to start consume after that?<br /> I know readiness probe can help to control allocate outside request to pod before it is u...
<p>Kubernetes uses liveness and readiness probes to find out if your pods are healthy. If the liveness probe fails, Kubernetes will kill the container and automatically restart it if the restart policy is set accordingly. If the readiness probe fails then Kubernetes will remove the pod from serving requests through a s...
<p>I'm working on an application that launches K8S Job (dockerised computer science batchs applications) and I want to prioritizes their launchs.</p> <p>I don't want to use preemption because all jobs have to be done and I want to be sure that the scheduling order is maintained.</p> <p>When I read this doc: <a href="ht...
<p>As you need to use only Non preemptive refer to this <a href="https://stackoverflow.com/a/62135156/19230181">SO</a> and <a href="https://tutorialwing.com/preemptive-or-non-preemptive-priority-scheduling/" rel="nofollow noreferrer">Doc</a> which helps you in understanding the usage of this non preemptive class.</p>
<p>I have a workflow template which outputs an artifact, this artifact has to be passed to another workflow template as an input. how we can do that? I'm following the way below which is not working</p> <p>Here is <code>WorflowTemplate1.yaml</code></p> <pre><code>apiVersion: argoproj.io/v1alpha1 kind: WorkflowTemplate ...
<p>I think I found the issue. I need to use <code>artifacts</code> instead of <code>parameters</code> in <code>WorkflowTemplate1.yaml</code> in outputs code block</p> <p>here's the fix</p> <pre><code>outputs: artifacts: - name: arfile path: &quot;{{inputs.parameters.Odir}}/arfile&quot; </code></pre>
<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...
<p>The error you are getting usually comes when the <code>KUBECONFIG</code> environment variable is not exported. Run the following commands as a regular user or run the last command as root.</p> <pre><code>sudo cp /etc/kubernetes/admin.conf $HOME/ sudo chown $(id -u):$(id -g) $HOME/admin.conf export KUBECONFIG=$HOME/a...
<p>I would like to create an argoCD application right from the git repository, ie the gitOps way. I already created a CRD file for the application which looks like this:</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: my-service namespace: arg...
<p>At some point you have to manually apply a manifest to your ArgoCD instance.</p> <p>You can limit that to a single manifest if you utilize the <a href="https://argo-cd.readthedocs.io/en/stable/operator-manual/cluster-bootstrapping/" rel="nofollow noreferrer">app-of-apps</a> pattern, in which you have a repository th...
<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...
<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 ...
<p>Following the example on <a href="https://kubernetes.io/docs/concepts/services-networking/service/#services-without-selectors" rel="nofollow noreferrer">kubernetes.io</a> I'm trying to connect to an external IP from within the cluster (and i need some port proxy, so not ExternalName service). However it is not worki...
<p>After some trial and error it seem that if <code>ports[0].name = http</code> is set for the <code>endpointslice</code> it stops working.</p> <p>it stops working for when for the <code>service</code> <code>spec.ports[0].targetPort</code> is set to <code>80</code> or <code>http</code> as well.</p> <p>(it does work whe...
<p>How to create a notification filter in pub/sub subscription to select a particular message section in a JSON log.</p> <p>For example:</p> <ul> <li>You have a JSON log:</li> </ul> <pre><code> { &quot;incident_type&quot;: Bla bla&quot;, &quot;incident_state&quot;: &quot;Open&quot;, &quot;message&quot;: GKE Cluster...
<p>Maybe you can use the subscription <strong>filter</strong></p> <blockquote> <p>If a filter syntax is provided, subscribers will only receive messages that match the filter.</p> </blockquote> <p>With <strong>Golang</strong></p> <pre><code>import ( &quot;context&quot; &quot;fmt&quot; &quot;io&q...
<p>I need to know a way to scale down all the deployments on a kubernetes namespace except for one with a specific string inside the name since it has dependencies. This on an AzureCLI task inside of an azure pipeline. Any ideas?</p> <p>Something like: If name contains &quot;randomname&quot; then do not scale up/down t...
<p>You can add a <em>label</em> on the one you want to exclude, and then use queries using <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api" rel="nofollow noreferrer">labels and selectors</a> to apply operations on the selected set of resources.</p>
<p>I have a PersistenceVolumeClaim defined by</p> <pre><code>apiVersion: v1 kind: PersistentVolumeClaim metadata: name: my-pvc spec: storageClassName: &quot;standard&quot; accessModes: - ReadWriteOnce resources: requests: storage: 1Gi </code></pre> <p>And the containers section of the deployment y...
<blockquote> <p>Do each replica of my pod get 1GB storage space (Assuming the PersistentVolume has enough space)?</p> </blockquote> <p>No. Since you use one <code>PersistentVolumeClaim</code>, you will get one <code>PersistentVolume</code>.</p> <blockquote> <p>How would this behave if the pod replicas are on different ...
<p>We are running our end-to-end tests using a single Cassandra node running on k8s, this node gets quite a lot reads and writes, note that this node is deleted once tests have finished, so there is no need to consider long term maintenance of data etc. what optimisations would you recommend to configure in this use c...
<p>So there are always a few things that I do when building up a single node for development or testing. My goals are more about creating something which matches the conditions in production, as opposed to reducing overhead. Here's my list:</p> <ul> <li>Rename the cluster to something other than &quot;Test Cluster.&q...
<p>I am testing automation by applying Gitlab CI/CD to a GKE cluster. The app is successfully deployed, but the source code changes are not applied (eg renaming the html title).</p> <p>I have confirmed that the code has been changed in the gitlab repository master branch. No other branch.</p> <p>CI/CD simply goes throu...
<p>By default,<strong>imagepullpolicy</strong> will be <strong>Always</strong> but there could be chances if there is no change in the <strong>deployment</strong> file when applying it might not update the <strong>deployment</strong>. As you are using the same <strong>label</strong> each time <strong>latest</strong>.</...
<p>I am trying to evaluate whether I should use Spot VMs and the measure for availability is given as a percentage by Azure. <a href="https://www.linkedin.com/pulse/viewing-eviction-rates-spot-virtual-machines-azure-portal-dave-callan/" rel="nofollow noreferrer">https://www.linkedin.com/pulse/viewing-eviction-rates-spo...
<p>The Azure spot VMs are mostly used when your workload can handle sudden interruptions without damaging the process too much.</p> <p>When it comes to the <strong>percentage</strong>, the formula looks like this:</p> <pre><code>(total_evictions * time_lost) / total_runtime = eviction rate </code></pre> <p>So for examp...
<p>I have a service &quot;A&quot; deployed in &quot;X&quot; namespace. &quot;Z&quot; service from &quot;P&quot; namespace, calls it on<br /> <code>svc-a.x.svc.cluster.local</code><br /> I have to deploy staging of service &quot;A&quot; in Y namespace as well and I want to register these IPs under<br /> <code>svc-a.x.sv...
<p>You can try using a Service without selectors with an EndPointSlice which refers to a Service from each namespace.</p> <p>Create <code>svc-a</code> in namespace <code>X</code> which selects / points to pods in namespace X. The Service will be available at <code>svc-a.x.svc.cluster.local</code>.</p> <p>Create <code>...
<p>I am novice to k8s, so this might be very simple issue for someone with expertise in the k8s.</p> <p>I am working with two nodes </p> <ol> <li>master - 2cpu, 2 GB memory</li> <li>worker - 1 cpu, 1 GB memory</li> <li>OS - ubuntu - hashicorp/bionic64</li> </ol> <p>I did setup the master node successfully and i can ...
<ol> <li><p>Run the command 'kubectl config view' or 'kubectl cluster-info' to check the IP address of Kubernetes control plane. In my case it is 10.0.0.2.</p> <p>$ kubectl config view</p> <p>apiVersion: v1</p> <p>clusters:</p> <ul> <li><p>cluster:</p> <p>certificate-authority-data: DATA+OMITTED</p> <p>server: <a href...
<p>I'm trying to exec kubernetes pod using the Websocket, as per the kubernetes document it can be achieved through passing the <strong>Bearer THETOKEN</strong></p> <p>When using bearer token authentication from an http client, the API server expects an Authorization header with a value of Bearer THETOKEN</p> <p>Her...
<p>I never used websocket with kubernetes before, but here is the documentation about the token authentication method for websocket browser clients <a href="https://github.com/kubernetes/kubernetes/pull/47740" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/pull/47740</a></p> <p>You must to send toke...
<p>I have a k8s cluster where I deploy some containers.</p> <p>The cluster is accessible at microk8s.hostname.internal.</p> <p>At this moment I have an application/container deployed that is accessible here: microk8s.hostname.internal/myapplication with the help of a service and an ingress.</p> <p>And this works great....
<p>To do this you would have to configure a kube service, kube ingress and the configure your DNS.</p> <p>Adding an entry into the <code>hosts</code> file would allow DNS resolution to <code>otherapplication.microk8s.hostname.internal</code></p> <p>You could use <code>dnsmasq</code> to allow for wildcard resolution e.g...
<p>I'm trying to exec a command into a running pod. I'm using go K8sclient to achieve this but facing a issue. I also don't know if solution is correct or not. Can anyone please check and provide correct solution?</p> <p>This is my code.</p> <pre><code> namespace := getNamespace() podName := &quot;maxsca...
<p>As @David Maze shared, to use k8's go client to exec command in a pod follow the below code:</p> <pre><code>import ( &quot;io&quot; v1 &quot;k8s.io/api/core/v1&quot; &quot;k8s.io/client-go/kubernetes&quot; &quot;k8s.io/client-go/kubernetes/scheme&quot; restclient &quot;k8s.io/client-go/rest&quot...
<p>I am just wondering to know how should I create a <code>docker</code> file for a Flutter app then deploy it on a <code>Kubernetes</code> cluster?</p> <p>I found the following <code>Dockerfile</code> and <code>server.sh</code> script from <a href="https://blog.logrocket.com/containerizing-flutter-web-apps-with-docke...
<p>The question (title) is misleading. There are 2 parts.</p> <ol> <li>How to containerize the app (in this case flutter app).</li> <li>How to deploy the app on the k8s cluster.</li> </ol> <p>To deal with the first part, You have Dockerfile. There is room for improvement but I think this Dockerfile should work. Then yo...
<p>I'm running colima with kubernetes like: <code>colima start --kuberenetes</code></p> <p>I created a few running pods, and I want to see access the through the browsers. But I don't know what is the colima IP (or kubernetes node IP).</p> <p>help appreciated</p>
<p>You can get the nodeIp so:</p> <pre><code>kubectl get node NAME STATUS ROLES AGE VERSION nodeName Ready &lt;none&gt; 15h v1.26.0 </code></pre> <p>Then with the nodeName:</p> <pre><code>kubectl describe node nodeName </code></pre> <p>That gives you a descrition of the node and you should look f...
<p>Is it possible to specify or change the service account to be used when accessing the kube api from within the cluster using rest.InClusterConfig in golang? It seems to use the default service account (or the service account the pod running is under) but i want to use another service account. I am aware that i can u...
<p>In Kubernetes, a Pod (or multiple for the same service) has a ServiceAccount. That is the way it is designed.</p> <p>This ServiceAccount can be a specific that you create, you don't have to use a default ServiceAccount in a Namespace.</p>
<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...
<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>
<p>I have a docker container python app deployed on a kubernetes cluster on Azure (I also tried on a container app). I'm trying to connect this app to Azure key vault to fetch some secrets. I created a managed identity and assigned it to both but the python app always fails to find the managed identity to even attempt ...
<p>Using the <a href="https://secrets-store-csi-driver.sigs.k8s.io/topics/set-as-env-var.html" rel="nofollow noreferrer">Secrets Store CSI Driver</a>, you can configure the <code>SecretProviderClass</code> to use a <a href="https://learn.microsoft.com/azure/aks/workload-identity-overview" rel="nofollow noreferrer">work...
<p>I use MetalLB and Nginx-ingress controller to provide internet access to my apps. I see that in most configurations, the service is set to ClusterIP, as the ingress will send traffic there.</p> <p>My question is: does this end up with double load balancing, that is, one from MetalLB to my ingress, and another from m...
<p>Metallb doesn't receive and forward any traffic, so</p> <blockquote> <p>from MetalLB to my ingress</p> </blockquote> <p>doesn't really make sense. Metallb just configures kubernetes services with an external ip and tells your surrounding infrastructure where to find it. Still with your setup there will be double loa...
<p>We have our web api service running in OpenShift for the past few months</p> <p>When we deployed this to OpenShift, initially we have given basic request and limits for memory and CPU.</p> <p>Sometime when the resource limit crossed its threshold we had to increase the limit</p> <p>We have several services deployed ...
<p>Try the below queries which are helpful in your case :</p> <pre><code>avg ( avg_over_time(container_cpu_usage_seconds_total:rate5m[30d]) ) by (pod_name) </code></pre> <p>The above query is used to determine the average CPU usage of a certain pod for the past 30 days.</p> <pre><code>avg ( avg_over_time(conta...
<p>I am trying to set up a Kubernetes master node. Every time I try to start kubelet I am getting the error message:</p> <pre><code>command failed&quot; err=&quot;failed to validate kubelet flags: the container runtime endpoint address was not specified or empty, use --container-runtime-endpoint to set </code></pre> <p...
<p>Looks like you are encountering the problem with <a href="https://kubernetes.io/blog/2022/11/18/upcoming-changes-in-kubernetes-1-26/#cri-api-removal" rel="noreferrer">Removal of the CRI v1alpha2 API and containerd 1.5 support</a> in K8s 1.26.</p> <p><strong>Possible workarounds:</strong></p> <p>You can solve this by...
<p>I'm trying to trigger cronjob manually(not scheduled) using fabric8 library but getting the following error:</p> <pre><code>Caused by: io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.20.0.1:443/apis/batch/v1/ namespaces/engineering/jobs. Message: Job.batch &quot;app-ch...
<p>If you want to trigger an already existing CronJob, you need to provide ownerReference for the existing CronJob in Job:</p> <pre class="lang-java prettyprint-override"><code>// Get already existing CronJob CronJob cronJob = kubernetesClient.batch().v1() .cronjobs() .inNamespace(namespace) .withN...
<p>I am getting below error when running <code>mlflow app</code></p> <blockquote> <p>raise AttributeError(&quot;module {!r} has no attribute &quot; AttributeError: module 'numpy' has no attribute 'object'</p> </blockquote> <p>Can someone help me with this</p>
<p>Since version 1.24 of numpy, <code>np.object</code> is deprecated, and needs to be replaced with <code>object</code> (cf. <a href="https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations" rel="noreferrer">numpy release notes</a>).</p> <p>You either need to update this in your code, or another package you're...
<p>I have a terraform code as given below</p> <pre><code> locals { file_path = format(&quot;%s-%s&quot;, var.test1, var.test2) test_decode = yamldecode((data.github_repository_file.test.content)) } data &quot;github_repository_file&quot; &quot;test&quot; { repository = &quot;test-repo&quot; ...
<p>You can use <a href="https://developer.hashicorp.com/terraform/language/functions/try" rel="nofollow noreferrer">try</a>:</p> <pre><code> test_encode = yamlencode(try(local.test_decode.spec.names, &quot;some_default_value&quot;)) </code></pre>
<p>I am new to Kubernetes and if I am not wrong, a service can be exposed inside the cluster using <code>ClusterIP</code>, and to the outside world using <code>NodePort</code> or <code>LoadBalancer</code> types. But my requirement is that I have a single container that has few REST APIs. I want that one API (the basic ...
<p>You can keep your service as <strong>ClusterIP</strong> and use the <strong>ingress</strong>.</p> <p>With <strong>ingress</strong> and <strong>ingress controller</strong>, you can setup and expose the desired path outside of cluster.</p> <p><a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" r...
<p>I am just setting two simple services on Mac using minikube</p> <p>I have the service set up and I can access it via ingress / minikube tunnel . So i know the service works</p> <p>I am using Spring Boot 3, with the so i need to specify the <code>spring-cloud-starter-kubernetes-all</code> package. This means I need ...
<p>You are trying to configure your discovery client with the Kubernetes API server URL, which is incorrect. Your client application needs to be connected to <strong>Spring Cloud Kubernetes Discovery Server</strong>. It's an independent application that will work like a <strong>proxy</strong> between your client Spring...
<p>I have a kubernetes cluster with a node pool. I enabled autoscaling. I defined min &amp; max values of nodes in node pool options.</p> <p>I observed that I need those nodes during working hours only. During non working hours nodes are mostly idle. I want to save cost by shutting down nodes if they are idle for say -...
<p>There is no default option however you can write the <strong>cloud function</strong> and trigger it with the <strong>scheduler</strong> to scale down the <strong>GKE nodes</strong> on a <strong>time</strong> basis. i had the same requirement so written <strong>cloud function</strong> script.</p> <p>i tried two metho...
<p>I am running airflow using postgres.</p> <p>There was a phenomenon that the web server was slow during operation.</p> <p>It was a problem caused by data continuing to accumulate in dag_run and log of the db table (it became faster by accessing postgres and deleting data directly).</p> <p>Are there any airflow option...
<p>You can purge old records by running:</p> <pre class="lang-bash prettyprint-override"><code>airflow db clean [-h] --clean-before-timestamp CLEAN_BEFORE_TIMESTAMP [--dry-run] [--skip-archive] [-t TABLES] [-v] [-y] </code></pre> <p>(<a href="https://airflow.apache.org/docs/apache-airflow/stable/cli-and-env-variables-r...
<p>I have deployment an application, But pod always in pending state.</p> <pre><code>$ kubectl get nodes NAME STATUS ROLES AGE VERSION server1 Ready control-plane 8d v1.24.9 server2 Ready worker1 8d v1.24.9 server3 Ready worker2 8d v1.24.9 ser...
<p>You have <strong>4</strong> nodes in the cluster, so generally one is <strong>master</strong> node, and on top of that <strong>app</strong> pods not schedule so <strong>3</strong> <strong>nodes</strong> are left.</p> <p>While with the worker node, your deployment has of <strong>node affinity</strong> set so due to t...
<p>I am trying to use VSCode Cloud Studio plugin to deploy and debug a project in Kubernetes. When I use intellij and Cloud Studio plugin there, everything works perfect. My MongoDB is persistent with each deployment. When I use VSCode and Cloud Studio there, MongoDB is not persistent anymore. I would appreciate any ti...
<p>It looks like the Cloud Code for IntelliJ configuration is restricting the deployment to the XYZ module, but not in the Cloud Code for VS Code configuration.</p>
<p>I am trying to add labels to the nodes using helm chart, however getting error while deploying.</p> <p>yaml template</p> <pre><code> apiVersion: v1 kind: Node metadata: name: {{ index (lookup &quot;v1&quot; &quot;Node&quot; &quot;&quot; &quot;&quot;).items 0 &quot;metadata&quot; &quot;name&quot; }} labels: ...
<p>You can't use Helm to modify existing objects. Helm works by running its templating engine to construct complete Kubernetes manifests, and them submits them to the cluster. This process assumes that an object is wholly owned by Helm, and these objects don't already exist, and nothing other than <code>helm upgrade<...
<p>OAUTH2 is used for authentication and the OAUTH2 proxy is deployed in Kubernetes. When a request is received by the NGINX Ingress controller, it always routes the traffic to OAUTH proxy. The requirement is when the request contains a specific header (For example: abc) then those requests should be routed directly to...
<p>You may want to have a look at <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#canary" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#canary</a></p> <p>Let's say you have a normal Ingress:</p> <pre class...
<p>Actually, I use kubernetes service accounts mostly with NodeJS, and this works fine, but I have this one service made in Go and I can't seem to make it work with service accounts (I know that the service account is correctly configured because I tested it with a pod).</p> <p>I'm using this lib <a href="https://githu...
<p>There are a few things you can try to get your Go service to work with service accounts on Kubernetes:</p> <p>Verify that your Go service is properly configured to use the Kubernetes service account. This can be done by checking that the service account is correctly mounted as a volume in the pod definition and that...
<p>Why is there a pod limit in Kubernetes?</p> <p>It makes intuitive sense to me that there'll be some limitation, but I'm curious to know the specific botteleneck which warrants the limit.</p>
<p>The default limit of 110 pods per node is merely a compromise of Kubernetes, I think, not a technical limit.</p> <p>Some vendors have additional limitations.</p> <p>For example, on Azure, there's a limit on the number of IP addresses you can assign to a node. So if your Kubernetes cluster is configured to assign a I...
<p>when performing helm upgrade, I find that secrets that are created upon initial install are deleted. Why is this? The example I am using is dagster. When installing with:</p> <p><code>helm install dagster dagster/dagster \ ...
<p><code>when performing helm upgrade, I find that secrets that are created upon initial install are deleted. Why is this?</code></p> <p>This is currently how helm works, here's the <a href="https://github.com/helm/helm-www/issues/1259" rel="nofollow noreferrer">issue opened</a> for discussion, there are several workar...
<p>I am new to GKE Can please help to understand What does this statement mean .</p> <blockquote> <p>You cannot manually configure LoadBalancer features using the Google Cloud SDK or the Google Cloud console. You must use BackendConfig or FrontendConfig Kubernetes resources.</p> </blockquote>
<p>In simple words, if you are running the <strong>GKE</strong> with <strong>GCE</strong> <strong>ingress controller</strong>, <strong>serviceType</strong> <strong>LoadBalancer</strong> yaml, you have to use the <strong>BackendConfig</strong> or <strong>FrontendConfig</strong> to configure the Load Balancer.</p> <p><st...
<p>I know why use StatefulSet for stateful applications. (e.g. DB or something) In most cases, I can see like &quot;You want to deploy stateful app to k8s? Use StatefulSet!&quot; However, I couldn't see like &quot;You want to deploy stateless app to k8s? Then, DO NOT USE StatefulSet&quot; ever.</p> <p>Even nobody says ...
<p>In contrast to a Kubernetes Deployment, where pods are easily replaceable, each pod in a StatefulSet is given a name and treated individually. Pods with distinct identities are necessary for stateful applications.</p> <p>This implies that if any pod perishes, it will be apparent right away. StatefulSets act as contr...
<p>Hi I've deployed single MySQL db instance in Azure via the YAML file in Azure Kubernetes service. I can get into the container via CLI when I'm inside my cluster. I would like to connect with db instance via external client like MySQL Workbench or Sqlelectron or others, outside the cluster. As I found out it's possi...
<p>You are using ClusterIP service(line 7). The kubernetes ClusterIP service is not made to allow you to access a pod outside of the cluster. ClusterIP just provide a way to have a not changing IP for other internal services to access your pod. You should use instead Loadbalanacer. Cf <a href="https://stackoverflow.com...
<p>I know why use StatefulSet for stateful applications. (e.g. DB or something) In most cases, I can see like &quot;You want to deploy stateful app to k8s? Use StatefulSet!&quot; However, I couldn't see like &quot;You want to deploy stateless app to k8s? Then, DO NOT USE StatefulSet&quot; ever.</p> <p>Even nobody says ...
<h2>Different Priorities</h2> <p>What happens when a Node becomes unreachable in a cluster?</p> <h2>Deployment - Stateless apps</h2> <p>You want to maximize availability. As soon as Kubernetes detects that there are fewer than the desired number of replicas running in your cluster, the controllers spawn new replicas of...
<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...
<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...
<p>I am using kubernetes with docker desktop on MacOS Monterey. I have problem with starting kubernetes, because 1 year passed and my kubernetes certificates are invalid.</p> <p>How can I renew them ?</p> <p>Error message:</p> <pre><code>Error: Kubernetes cluster unreachable: Get &quot;https://kubernetes.docker.interna...
<p>You will need to create a new set of <a href="https://docs.docker.com/desktop/faqs/macfaqs/#how-do-i-add-tls-certificates" rel="nofollow noreferrer">certificates</a> and keys in order to update the certificates used by Docker Desktop for MacOS. After that, you will need to add the new certificates and keys to the Ku...
<p>I have a requirement to store files in a PVC and attach that PVC to a Nginx ingress controller deployment so that application can access the files which are present in PVC but at the same application should not write back logs and configurations to PVC.</p> <p>Can you please let me know how can i achieve it?</p> <p>...
<p>You can use the <a href="https://cloud.google.com/storage/docs/gcs-fuse" rel="nofollow noreferrer">GCP fuse</a> and <strong>store</strong> files to <strong>S3</strong> directly that way it would be a little easy to manage if it's works for you.</p> <p>However, if you want to go with your Idea you have to implement t...
<p>I have setup the Kubernetes cluster with <a href="https://github.com/kubernetes-sigs/kubespray" rel="nofollow noreferrer">Kubespray</a> <a href="https://i.stack.imgur.com/bLcYE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bLcYE.png" alt="enter image description here" /></a></p> <p>Once I resta...
<p>This work for me, I'm using minukube,</p> <p>When checking the minikube status by running the command <code>minikube status</code> you'll probably get something like that</p> <pre><code> E0121 07:14:19.882656 7165 status.go:415] kubeconfig endpoint: got: 127.0.0.1:55900, want: 127.0.0.1:49736 type: C...
<h3>Context</h3> <p>I've installed minikube in github codespaces, and that works fantastic! With this setup I'm able to port forward any application running in minikube and reach it with the url generated by github codespaces.</p> <h3>Problem</h3> <p>I'd like to use github actions to deploy an app into the minikube clu...
<p>It toured out that it is possible. There are 2 ways that you could solve this problem.</p> <h3>Push based</h3> <ol> <li>Start GitHub codespace with minikube installed in it</li> <li>Install and configure GitHub's <a href="https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners" rel="no...
<p>From time to time all my pods restart and I'm not sure how to figure out why it's happening. Is there someplace in google cloud where I can get that information? or a kubectl command to run? It happens every couple of months or so. maybe less frequently than that.</p>
<p>It's also a good thing to check your cluster and node-pool operations.</p> <ol> <li>Check the cluster operation in cloud shell and run the command:</li> </ol> <pre><code>gcloud container operations list </code></pre> <ol start="2"> <li>Check the age of the nodes with the command</li> </ol> <pre><code>kubectl get nod...
<p>MacOS Big Sur 11.6.8 minikube version: v1.28.0</p> <p>Following several tutorials on ingress and attempting to get it working locally. Everything appears to work: manual <code>minikube service foo</code> works, <code>kubectl get ingress</code> shows an IP, pinging the designated host name resolves the expected IP, e...
<p>The behavior you are describing is most probably because the <code>ingress and ingress-dns addons</code> are currently only supported on Linux Systems when using the Docker driver, as mentioned in the <a href="https://minikube.sigs.k8s.io/docs/drivers/docker/#known-issues" rel="nofollow noreferrer">Known Issues</a> ...
<p>MacOS Big Sur 11.6.8 minikube version: v1.28.0</p> <p>Following several tutorials on ingress and attempting to get it working locally. Everything appears to work: manual <code>minikube service foo</code> works, <code>kubectl get ingress</code> shows an IP, pinging the designated host name resolves the expected IP, e...
<p>Based on Veera's answer, I looked into the ingress issue with macOS and <code>minikube tunnel</code>. To save others the hassle, here is how I resolved the issue:</p> <ol> <li>ingress doesn't seem to work on macOS (the different pages say &quot;with docker&quot; but I had the same outcome with other drivers like hyp...
<p>Pod A is on ClusterIP service type, so incoming requests from external resources are not allowed. Pod A executes outgoing requests to 3rd party services (Such as Google APIs). And I want to specify the IP address that this request is coming from on google for security reasons.</p> <p>Is there a way to find the IP ad...
<p>If it is a public cluster where each node in the cluster has an ip address the public ip will be the address of the node the pod is on. If it is a private cluster you can deploy a nat gateway for all the nodes and specify static ip addresses.</p> <p>you can use this terraform module for a private cluster: <a href="...
<p>I got problem with connecting my k3s cluster to GitLab Docker Registry.</p> <p>On cluster I got created secret in default namespace like this</p> <pre><code>kubectl create secret docker-registry regcred --docker-server=https://gitlab.domain.tld:5050 --docker-username=USERNAME --docker-email=EMAIL --docker-password=T...
<p>To pull from a private container registry on Gitlab you must first create a <code>Deploy Token</code> similar to how the pipeline or similar &quot;service&quot; would access it. Go to the repository then go to <code>Settings</code> -&gt; <code>Repository</code> -&gt; <code>Deploy Tokens</code></p> <p>Give the deplo...
<p>Hi I've deployed single MySQL db instance in Azure via the YAML file in Azure Kubernetes service. I can get into the container via CLI when I'm inside my cluster. I would like to connect with db instance via external client like MySQL Workbench or Sqlelectron or others, outside the cluster. As I found out it's possi...
<p>You have used the <strong>type: ClusterIP</strong> so it won't expose the MYSQL outside the cluster ideally, your Microservices running in the cluster will be able to access it however you can not use it externally.</p> <p>To expose the service we generally have to use the <strong>type: LoadBalancer</strong>. It wil...
<p>It seems a silly question, but how do I expand the &quot;+ 1 more...&quot; from the endpoints list?</p> <p>Particularly I want to see all the endpoints of a service and the following command hides some endpoints behind the &quot;+ 1 more...&quot;.</p> <pre><code> kubectl describe service &lt;name&gt; </code></pre>...
<p>An interesting approach would be to output the json and extract the relevant fields. This is useful if you want to analyse the output after. You may want to add the namespace in case you have multiple.</p> <p>Single command:</p> <pre><code>kubectl get endpoints -o jsonpath=&quot;{range .items[*]}{.metadata.name},{.s...
<p>When deploying the app, certain environment-specific settings need to be applied to the server.xml, which cannot be applied when the container is built. Has anyone tried using a volume_mounted config file, and where would I tell tomcat the location of this custom config?</p>
<p>To illustrate <a href="https://stackoverflow.com/users/19246531/nataraj-medayhal">Nataraj Medayhal</a>, you can find an example based on configMap on <a href="https://github.com/devlinx9/k8s_tomcat_custer" rel="nofollow noreferrer"><code>devlinx9/k8s_tomcat_custer</code></a></p> <blockquote> <p>The configMap is used...
<p>I have a devops pipeline divided in three steps:</p> <ul> <li><code>kubectl apply -f configmap.yml</code></li> <li><code>kubectl apply -f deployment.yml</code></li> <li><code>kubectl rollout restart deployment/test-service</code></li> </ul> <p>I think that when the <code>configmap.yml</code> changes the <code>rollou...
<p>This isn't a direct answer, but it ended up being too long for a comment and I think it's relevant. If you were to apply your manifests using <a href="https://kustomize.io/" rel="nofollow noreferrer"><code>kustomize</code></a> (<em>aka</em> <code>kubectl apply -k</code>), then you get the following behavior:</p> <ul...
<p>I have a problem where we essentially discovered a piece of stale configuration in a live environment on one of our deployments (a config map was added as a volume mount). Reading through the docs <a href="https://v3.helm.sh/docs/faq/changes_since_helm2/" rel="nofollow noreferrer">here</a> (search for 'Upgrades wher...
<p>Based on the description, the <code>--force</code> flag should do the trick.</p> <p><code>--force force resource updates through a replacement strategy</code></p> <p>However, there are some issues with it as mentioned in this <a href="https://github.com/helm/helm/issues/9433" rel="nofollow noreferrer">GitHub i...
<p>I just installed prometheus operator as indicated here: <a href="https://github.com/prometheus-operator/kube-prometheus" rel="nofollow noreferrer">https://github.com/prometheus-operator/kube-prometheus</a>:</p> <pre><code>kubectl apply --server-side -f manifests/setup kubectl wait \ --for condition=Established \...
<p>After looking at the yaml files I realized that Prometheus doesn't have the permissions to read all namespaces. And after looking at the repository customization examples I found the solution: <a href="https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/customizations/monitoring-additional-namespac...
<p>I'm setting up an on-premise kubernetes cluster with kubeadm.</p> <p>Here is the Kubernestes version</p> <pre><code>clientVersion: buildDate: &quot;2022-10-12T10:57:26Z&quot; compiler: gc gitCommit: 434bfd82814af038ad94d62ebe59b133fcb50506 gitTreeState: clean gitVersion: v1.25.3 goVersion: go1.19.2 maj...
<p>Once understood the issue is fairly simple.</p> <p>The metallb setup described above works as it is supposed to. However, the Kubernetes setup does not. Most likely due to bad network configuration.</p> <hr /> <h3>Understanding the error</h3> <p>The key to understanding what is going on is the following error:</p> <...
<p>Exposing Service from a BareMetal(Kubeadm) Build Kubernetes Cluster to the outside world. I am trying to access my Nginx as a service outside of the cluster to get NGINX output in the web browser.</p> <p>For that, I have created a deployment and service for NGINX as shown below, <a href="https://i.stack.imgur.com/2G...
<p>You need to deploy an <a href="https://kubernetes.io/docs/concepts/services-networking/ingress-controllers/" rel="nofollow noreferrer">ingress controller</a> in your cluster so that it gives you an entrypoint where your applications can be accessed. Traditionally, in a cloud native environment it would automatically...
<p>I have created an AKS cluster using the following Terraform code</p> <pre><code>resource &quot;azurerm_virtual_network&quot; &quot;test&quot; { name = var.virtual_network_name location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name address_...
<p>This is because the ingress gateway selector when installed with Helm is <code>istio: ingress</code>, instead of <code>istio: ingressgateway</code> when installed with istioctl.</p> <p>If you modify the Gateway to reflect this, then it should work:</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: ne...
<p>In Kubernetes, <em>is it possible to enforce virtual memory (physical page swapping to disk) on a pod/container with memory requests and limits set?</em></p> <p>For instance, as per the Kubernetes documentation, “if you set a memory limit of 4GiB for a container, the kubelet (and container runtime) enforce the limit...
<p>Reading the <a href="https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#memory-interface-files" rel="nofollow noreferrer">kernel documentation</a> on this leads me to believe this is <strong>not</strong> possible. And I don't think this is a desirable behavior. Let's just think about the following sce...
<p>I have created an AKS cluster using the following Terraform code</p> <pre><code>resource &quot;azurerm_virtual_network&quot; &quot;test&quot; { name = var.virtual_network_name location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name address_...
<p>This is because you have hit <a href="https://artifacthub.io/packages/helm/istio-official/gateway#general-concerns" rel="nofollow noreferrer">general concerns</a> of istio- prefix get striped, from the steps by steps installation with <code>istio-ingress</code> will stripe with <code>ingress</code>, so if you using ...
<p>I am getting below error after installing keda in my k8s cluster and created some scaled object...</p> <p>whatever command i am running EG: &quot; kubectl get pods&quot; i am getting response with below error message..</p> <p>How to get rid of below error message.</p> <p>E0125 11:45:32.766448 316 memcache.go:255...
<p>This error is from <code>client-go</code> when there are no resources available in <code>external.metrics.k8s.io/v1beta1</code> here in client-go, it gets all ServerGroups. When KEDA is not installed then external.metrics.k8s.io/v1beta1 is not part of ServerGroups and hence its not called and therefore no issue.</p>...
<p>Exposing Service from a BareMetal(Kubeadm) Build Kubernetes Cluster to the outside world. I am trying to access my Nginx as a service outside of the cluster to get NGINX output in the web browser.</p> <p>For that, I have created a deployment and service for NGINX as shown below, <a href="https://i.stack.imgur.com/2G...
<p>You need to set up <code>MetalLB</code> to get an external IP address for the <code>LoadBalancer</code> type services. It will give a local network IP address to the service.</p> <p>Then you can do port mapping (configuration in the router) of incoming traffic of port <code>80</code> and port <code>443</code> to you...
<p>I am studying &quot;kubectl describe&quot; sourcecodes at <a href="https://github.com/kubernetes/kubectl/blob/master/pkg/describe/describe.go" rel="nofollow noreferrer">https://github.com/kubernetes/kubectl/blob/master/pkg/describe/describe.go</a></p> <p>However, I still could not figure out how &quot;kubectl decsri...
<p>The &quot;kubectl describe &quot; function can be found in the command-line interface (CLI) of Kubernetes, specifically in the &quot;kubectl&quot; tool. &quot;kubectl&quot; is used to manage and interact with a Kubernetes cluster and its resources. <a href="https://i.stack.imgur.com/mZ6Tz.png" rel="nofollow noreferr...
<p>I have an ingress for my application:</p> <pre><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: myapi-ingress annotations: nginx.ingress.kubernetes.io/ssl-redirect: &quot;true&quot; spec: ingressClassName: nginx rules: - host: mysite.com http: paths: - path: &quot;/p...
<p>The problem was the host name set on the Ingress</p>
<p>Using Kubernetes, exactly the <code>kubectl apply -f ./auth.yaml</code> statement, i'm trying to run a Authorization Server in a pod, but when I check out the logs, this show me the following error:</p> <pre><code> . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | ...
<p>I was using Spring Boot 3 but was missing:</p> <pre><code> &lt;dependency&gt; &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt; &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt; &lt;/dependency&gt; </code></pre>
<p>I have the following CronJob to run a backup of my database, and I'd like the backup files to be appended with the date:</p> <pre class="lang-yaml prettyprint-override"><code>{{- if .Values.postgresqlBackup.enabled }} apiVersion: batch/v1 kind: CronJob metadata: name: postgres-backup spec: schedule: {{ .Values.p...
<p>If you want to use shell substitution, then you need to execute your command <strong>with a shell</strong>. For example:</p> <pre><code>containers: - name: postgres image: postgres:latest imagePullPolicy: IfNotPresent command: - /bin/sh - -c - &gt; pg_dump --username=p...
<p><strong>Goal:</strong></p> <p>I want to use bitnami/kafka helm chart with SASL enabled with the PLAIN mechanism for only the external client. (client-broker, broker-broker, broker-zookeeper connection can be in PLAINTEXT mechanism)</p> <p><strong>What I have Done:</strong></p> <p>I've set configured parameters in va...
<p>This is work for me:</p> <pre><code>... authorizerClassName: &quot;kafka.security.authorizer.AclAuthorizer&quot; auth: clientProtocol: sasl externalClientProtocol: sasl interBrokerProtocol: plaintext sasl: mechanisms: plain,scram-sha-256,scram-sha-512 interBrokerMechanism: plain jaas: clie...
<p>by default, nginx ingress listens to two ports 80 and 443, how to add listening on port 9898 I tried to change it in daemon set, but nothing came out , I don 't even know where else to dig</p>
<p>I'm not sure what will work exactly for you, but here's a few things you can try to approach this (read carefully because nginx is confusing):</p> <ol> <li><p>Define <code>service</code> for your deployment, and make sure it covers port routes you want and support on deployment end:</p> <pre><code> apiVersion: v1 k...