prompt stringlengths 65 38.7k | response stringlengths 41 29.1k |
|---|---|
<p>My ingress cannot route to endpoint.</p>
<p>I provided everything. Nginx-controller works properly. I added the hostname bago.com as loadbalancerip. But it doesn't work.</p>
<p>Here is my ingres's yaml file</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
spec:
rules... | <p>You have an issue in your ingress manifest. You have two items in the list, while you want to have one. Additionally, you are missing the ingress class.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
spec:
rules:
# these ar... |
<p>I'm working on Apple Silicon M1 Max and I'm trying to access service through web browser, but <code>minikube service nginx</code> opens blank web browser tab with some address (for example <code>http://192.168.49.2:31542/</code>) which fails to load. In log below you can notice output from <code>minikube service lis... | <p>The network is limited if using the Docker driver on Darwin, Windows, or WSL, and the Node IP is not reachable directly.</p>
<p>Run service tunnel</p>
<pre><code>minikube service nginx
</code></pre>
<p>Check ssh tunnel in another terminal</p>
<pre><code>$ ps -ef | grep docker@127.0.0.1
ssh -o UserKnownHostsFile=/dev... |
<p>I'm using <a href="https://k8slens.dev/" rel="nofollow noreferrer">lens kubernetes</a> I searched and tried a lot but I didn't find any way to switch between namespaces. is there any option to do so ?
to clarify it in vscode extension you can switch between namespaces easily by right clicking on a namespace listed a... | <p>If I remember correctly there is a dropdown on the top right corner which you can use to select the namespace from.</p>
<p>Here is a screenshot from a blog that shows this dropdown:</p>
<p><a href="https://i.stack.imgur.com/nbtNH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nbtNH.png" alt="Select Namesp... |
<p>I'm trying to use patching in Kustomize to modify Kubernetes resources and I'm wondering if there is a neat way to update every item of a list.</p>
<p>Here is the yaml that I'd like to customize:</p>
<pre><code>apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
annotations:
... | <p>According to what discussed <a href="https://github.com/kubernetes-sigs/kustomize/issues/4561" rel="nofollow noreferrer">here</a> they don't have support for such case yet. when they add it you can do something like this:</p>
<pre><code>kind: Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
resources:
- va... |
<p>After upgrading from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS, I am currently facing issues with my k3s cluster.</p>
<p>For instance, the logs of the <code>local-path-provisioner</code> pod:</p>
<pre class="lang-sh prettyprint-override"><code>$ kubectl logs -n kube-system local-path-provisioner-6c79684f77-l4cqp
time=&qu... | <p>Since you're using Cilium, I think you might be running into this issue: <a href="https://github.com/cilium/cilium/issues/10645" rel="nofollow noreferrer">https://github.com/cilium/cilium/issues/10645</a></p>
<p>The workaround is to ensure <code>net.ipv4.conf.lxc*.rp_filter</code> is set to 0:</p>
<pre><code>echo 'n... |
<p>So I am trying to instrument a FastAPI python server with Open Telemetry. I installed the dependencies needed through poetry:</p>
<pre><code>opentelemetry-api = "^1.11.1"
opentelemetry-distro = {extras = ["otlp"], version = "^0.31b0"}
opentelemetry-instrumentation-fastapi = "^0.31b... | <p>You have incorrectly configured the exporter endpoint setting <code>OTEL_EXPORTER_OTLP_ENDPOINT</code>. Endpoint value for OTLP over HTTP exporter should have port number 4318. The 4317 port number should be used for OTLP/gRPC exporters.</p>
|
<p>I'm trying to use a ytt overlay to replace the <code>objectName</code> in my secret class following <a href="https://carvel.dev/ytt/#gist:https://gist.github.com/cppforlife/7633c2ed0560e5c8005e05c8448a74d2" rel="nofollow noreferrer">this gist example replacing only part of a multi-line string</a>, but it ends up app... | <p>It's key to notice that the YAML value being overlayed is itself an array. It's an array of one item, but an array nonetheless.</p>
<p>In order to reach the map that has the <code>objectName</code> map item, you need to first match its parent: that containing array item.</p>
<p>The most durable way to do that is by ... |
<p>I'm on an ec2 instance trying to get my cluster created. I have kubectl already installed and here are my services and workloads yaml files</p>
<p>services.yaml</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: stockapi-webapp
spec:
selector:
app: stockapi
ports:
- name: http
port: 80... | <p>This error comes when you don't have <code>~/.kube/config</code> file present or configured correctly on the client / where you run the <code>kubectl</code> command.</p>
<p>kubectl reads the clusterinfo and which port to connect to from the <code>~/.kube/config</code> file.</p>
<p>if you are using eks here's how yo... |
<p>I am trying to configure FluxCD in Kubernetes to send notifications to Microsfot Teams for reconciliation events.</p>
<p>I have followed the FluxCD "<a href="https://fluxcd.io/docs/guides/notifications/" rel="nofollow noreferrer">Setup Notifications</a>" instructions. Everything is deployed as expected.</p... | <p>So, firstly, I had not created an incoming webhook in Microsoft Teams UI: <a href="https://fluxcd.io/docs/components/notification/provider/#ms-teams" rel="nofollow noreferrer">https://fluxcd.io/docs/components/notification/provider/#ms-teams</a></p>
<p>Secondly, I asked a question to the Flux maintainers as @Nalum s... |
<p>I want to set up an IPv6 address to service on the GKE cluster. The main reason I want to do that is I am setting up a Google Managed Certificate and connecting the service to a Domain name. The certificate requires type A and type AAAA records to be configured. I reserved an IPv6 address on VPC Network, but there i... | <p>GKE does not currently support IPv6 for pods or services. You can, however, assign an IPv6 address to an external HTTP(S) load balancer. You won't be able to do this for <em>Service</em> of type <em>LoadBalancer</em>. You'll need to create an Ingress resource instead as Ingress creates an HTTP(S) load balancer wh... |
<p>I would like to validate deployments based on custom logic before scale.
I created an admission webhook to do that, but unfortunately the scale operation is undetected by the webook.</p>
<pre><code>apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
name: deployment-validator... | <p>When you run <code>kubectl scale</code> you are not actually patching the <code>Deployment</code> resource, but you are editing a subresource named <code>Scale</code> instead.</p>
<p>This is the API doc entry of the scale call: <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#replace-sca... |
<p>I have an API in a container and when I create a cluster the api works fine, but the pods constantly restart and there isn't any specific reason why in the logs.</p>
<p>I'm on an m5.Large EC2 instance and using k3d. I was following a demo so after installing k3d I ran this command</p>
<pre><code>k3d cluster create t... | <p>first of all the below line doesnt appears to be a log entry</p>
<pre><code>{'Company': {'S': 'AAPL'}, 'DailyPrice': {'S': '166.02'}}
</code></pre>
<p>you need to have log option, timestamp and other standard values in the log entry. It appears to be a code issue. plug-in standard logging lib like log4j and add log ... |
<p>Today the coredns one pod running into issue, I check the coredns pod and show log like this:</p>
<pre><code>.:53
2022-05-23T08:41:36.664Z [INFO] CoreDNS-1.3.1
2022-05-23T08:41:36.665Z [INFO] linux/amd64, go1.11.4, 6b56a9c
CoreDNS-1.3.1
linux/amd64, go1.11.4, 6b56a9c
2022-05-23T08:41:36.665Z [INFO] plugin/reload: Ru... | <p><code>why the dns tried to connect 100.100.2.136?</code></p>
<p>When coreDNS gets request that is outside the cluster domain (eg. <a href="http://www.google.com" rel="nofollow noreferrer">www.google.com</a>), it will forward the request to upstream nameserver (likely the 100.100.2.136:53 in your case). You can check... |
<p>I would like to validate, that deployments, which have Pod- and NodeAffinities (+AntiAffinity) are configured according to internal guidelines.</p>
<p>Is there a possibility to get deployments (or Pods) using kubectl and limit the result to Objects, that have such an affinity configured?</p>
<p>I have played around ... | <p>hope you are enjoying your Kubernetes journey !</p>
<p>If you need to use affinities (especially with <code>preferredDuringSchedulingIgnoredDuringExecution</code> (explications below)) and just want to just "find" deployments that actually have affinities, you can use this:</p>
<pre><code>❯ k get deploy -... |
<p>Right now, I can add my ip using</p>
<pre><code>gcloud container clusters update core-cluster --zone=asia-southeast1-a --enable-master-authorized-networks --master-authorized-networks w.x.y.z/32
</code></pre>
<p>but it overrides all the existing authorized networks that was already there.</p>
<p>Is there any way to ... | <p>You could automate what @Gari Singh said using gcloud, jq and tr. See below for doing it with CLI:</p>
<pre class="lang-bash prettyprint-override"><code>NEW_CIDR=8.8.4.4/32
export CLUSTER=test-psp
OLD_CIDR=$(gcloud container clusters describe $CLUSTER --format json | jq -r '.masterAuthorizedNetworksConfig.cidrBlocks... |
<p>I have an API in a container and when I create a cluster the api works fine, but the pods constantly restart and there isn't any specific reason why in the logs.</p>
<p>I'm on an m5.Large EC2 instance and using k3d. I was following a demo so after installing k3d I ran this command</p>
<pre><code>k3d cluster create t... | <p>Both your python files are executing batch actions.</p>
<p>The <code>app.py</code> file sends an email, the <code>database.py</code> stores something in a database.</p>
<p>That is not how Pods are supposed to work. Pods are meant to be persistent, or in other words to run continuously. Examples of workloads that are... |
<p>Here is a section of my network policy:</p>
<pre><code>egress:
-to:
- ipBlock:
cidr: 10.0.0.0/32
- ipBlock:
cidr: 10.0.0.1/32
ports:
- protocol: TCP
port: 5978
</code></pre>
<p>I have a doubt whether these IPs will be allowed to connect to the same port.</p>
<p>Basical... | <p>I assume the snippet you shared is a portion of a NetworkPolicy.</p>
<p>If so, you can have multiple entries in the <code>egress</code> field, like this for example:</p>
<pre><code>egress:
- to:
- ipBlock:
cidr: 10.0.0.1/32
ports:
- protocol: TCP
port: 5978
- to:
- ipBlock:
... |
<p>I have a pod with single binary with multiple threads in that application. Is it possible in Kubernetes to assign specific thread to specific CPU core inside the pod. I am aware of way to limit pod to work in specific cores, but my requirement is to manage thread mapping inside the pod to specific cores. Thank you.<... | <p>The lowest level that you can set up <strong>CPU Policies</strong> is at Container level. We can divide a Kubernetes cluster into namespaces. If you create a Pod within a namespace that has a default CPU limit, and any container in that Pod does not specify its own CPU limit, then the control plane assigns the defau... |
<p>How can I make every container run as non-root in Kubernetes?</p>
<p>Containers that do not specify a user, as in this example, and also do not specify a SecurityContext in the corresponding deployment, should still be able to be executed in the cluster - but without running as root. What options do you have here?</... | <p>you can add Pod Security Policy to your cluster, there is an option (below) you can add to prevent any deployment from running without specifying a non-root user:</p>
<pre><code>spec:
runAsUser:
rule: MustRunAsNonRoot
</code></pre>
<p>for more info about Pod Security Policy please go to this link:
<a href="ht... |
<p>Trying to plan out a deployment for an application and am wondering if it makes sense to have multiple pods in a container vs putting them in separate pods. I expect one of the containers to potentially be operating near its allocated memory limit. My understanding is that this presents the risk of this container ge... | <p>No, only the specific container.</p>
<p>For the whole pod to be recreated there needs to be a change in the Pod's <code>ownerObject</code> (tipically a <code>Replicaset</code>) or a scheduling decision by <code>kube-scheduler</code>.</p>
|
<p>I tried to define a PVC:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: master-pvc
spec:
accessModes:
- ReadWriteOnce
- ReadOnlyMany
resources:
requests:
storage: 1Gi
</code></pre>
<p>The nodes that need readonly access should ... | <p>It is not a node that requests a <code>volumeMount</code>, but a container inside a Pod (many Pods may run in same node).</p>
<p>A PVC is 1-1 bound to a PV using a single access mode (even it supports many) at a time (see also <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes" rel... |
<p>I have a service that lives inside my AKS cluster that requires both internal and external communication to authenticate against.</p>
<p>The current flow is this</p>
<p>GUI Application communicates to to ingress by FQDN, traffic gets handed off to Middleware, Middleware talks to another Middleware within the same Na... | <p>Never mind, the problem was that I only updated the NSG for the AKS Node Resource Group, I did not update the AKS Resource Group as well. Once I exposed the ports to the Cluster itself, traffic ran through just fine.</p>
|
<p>I have <strong>sample.yaml</strong> file that looks like the following:</p>
<pre><code> a:
b:
- "x"
- "y"
- "z"
</code></pre>
<p>and I have another file called <strong>toadd.yaml</strong> that contains the following</p>
<pre><code>- "first to add"
- "second ... | <p>If the files are relatively smaller, you could just directly load the second file on to the first. See <a href="https://mikefarah.gitbook.io/yq/operators/multiply-merge#merge-two-files-together" rel="nofollow noreferrer">Merging two files together</a></p>
<pre class="lang-none prettyprint-override"><code>yq '.a.b +=... |
<p>I am referring to this link (<a href="https://github.com/vegasbrianc/prometheus" rel="nofollow noreferrer">https://github.com/vegasbrianc/prometheus</a>) to install Prometheus in Docker version into a Ubuntu server (server-1)</p>
<p>I also have a Kubernetes cluster (bare-metal) running in another Ubuntu server (serv... | <p>Assuming both servers can access each other, you will need to configure the prometheus on server-2 to <a href="https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config" rel="nofollow noreferrer">scrape the targets</a> running on server-1, which in turn will have to expose their <code>/... |
<p>I am using Deployment kind to define a pod.
Pod definition contains two containers and 1 sidecar.</p>
<p>In kubernetes events, Execution of container start is in sequential way.
How we can start both containers parallely.</p>
<p>Container 1 (6s) + Container (5s) + NEG ready(2s) = 13s</p>
<p>If we start container in ... | <p><code>In kubernetes events, Execution of container start is in sequential way. How we can start both containers parallely.</code></p>
<p>Although container is started in <a href="https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/kuberuntime/kuberuntime_manager.go#L935" rel="nofollow noreferrer">sequen... |
<p>I am trying to mount remote path inside docker container image using sshfs, which will going to run on kubernetes cluster.</p>
<p><strong>Problem</strong>
The issue is there is not error & after run the server nginx does not respond. If I comment the <code>CMD</code> part its working.</p>
<p>Nginx Pod Status is ... | <p>I resolved the issue.</p>
<p>If anyone facing this issue here is the entire code</p>
<p><strong>Dockerfile-nginx</strong></p>
<pre><code>FROM nginx:1.20.2-alpine
RUN apk update && apk upgrade && apk add sshfs
COPY nginx/key.pem /home/files
RUN mkdir -p /mnt/shared
RUN chmod 600 /home/files/key.pem... |
<p>Using Kubernetes v1.16 on AWS I am facing a weird issue while trying to reduce the time it takes to start a pod on a newly spawned node.</p>
<p>By default, a node AMI does not contains any pre cached docker image, so when a pod is scheduled onto it, its 1st job is to pull the docker image.</p>
<p>Pulling large doc... | <p>This is most likely due to the new instance not having "fully downloaded" all parts of the disk. <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-initialize.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-initialize.html</a> has details on this.</p>
<... |
<p>I have created a database and accompanying user for the database but It appears I cant do backups with that user and neither can I add the backup role to the user.
Having checked documentation I added a user but this time at the admin database level (<code>use admin</code>) and added backup role for the same.</p>
<p... | <p>There is nothing to do from mongodb side. The user that is running <code>mongodump</code> command doesn't have the required permission. To check if thats the case, you can try this out : <code>sudo chmod 777 -R /var/backups/</code> before running <code>mongodump</code>.</p>
|
<p>I am able to get the jobs under the namespace using kubectl command:</p>
<pre><code>kubectl get jobs --namespace xxx
</code></pre>
<p>This is giving me the jobs information</p>
<p><a href="https://i.stack.imgur.com/X0j22.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X0j22.png" alt="enter image d... | <p><code>go-template</code> way, no pipes or installation needed. Just good old kubectl:</p>
<pre><code>kubectl get jobs --namespace xxx -o go-template='{{printf "%d\n" (len .items)}}'
</code></pre>
<p><code>len</code> is an inbuild function in <code>go-template</code> to return the number of elements to its... |
<p>I'm new to Kubernetes and trying to point all requests to the domain to another local service.</p>
<p>Both applications are running in the same cluster under a different namespace</p>
<p>Example domains
<code>a.domain.com</code> hosting first app
<code>b.domain.com</code> hosting the second app</p>
<p>When I do a <c... | <p>The way to do it is by using the <a href="https://gateway-api.sigs.k8s.io" rel="nofollow noreferrer">Kubernetes Gateway API</a>. Now, it is true that you can deploy your own implementation since this is an Open Source project, but there are a lot of solutions already using it and it would be much easier to learn how... |
<p>Both Logs/ Exec commands are throwing tls error:</p>
<pre><code>$ kubectl logs <POD-NAME>
Error from server: Get "https://<NODE-PRIVATE-IP>:10250/containerLogs/<NAMESPACE>/<POD-NAME>/<DEPLOYMENT-NAME>": remote error: tls: internal error
</code></pre>
<pre><code>$ kubectl exe... | <p>Check if your hostname type setting in the subnet and launch template configuration is using resource name and if that is the case then switch to using IP name instead. I think this is caused by some weird pattern matching going on with the AWS EKS control plane (as of v1.22) where it would not issue a certificate f... |
<p>I am migrating <strong>Certificate</strong> from <code>certmanager.k8s.io/v1alpha1</code> to <code>cert-manager.io/v1</code>, however, I am getting this error</p>
<blockquote>
<p>error validating data: ValidationError(Certificate.spec): unknown field "acme" in io.cert-manager.v1.Certificate.spec</p>
</bloc... | <p>The <code>cert-manager.io/v1</code> API version separates the roles of certificate <a href="https://cert-manager.io/docs/concepts/issuer/" rel="nofollow noreferrer">issuers</a> and certificates.</p>
<p>Basically, you need to <a href="https://cert-manager.io/docs/configuration/" rel="nofollow noreferrer">configure</a... |
<p>I'm running a Kubernetes cluster in a public cloud (Azure/AWS/Google Cloud), and I have some non-HTTP services I'd like to expose for users.</p>
<p>For HTTP services, I'd typically use an Ingress resource to expose that service publicly through an addressable DNS entry.</p>
<p>For non-HTTP, TCP-based services (e.g... | <p>A couple of years late to reply, but here is what I did for a similar case.</p>
<p>If you don't want to use <code>LoadBalancer</code> at all, then the other option is <code>NodePort</code> as you mention. To make it externally addressable, you can have the pod associate a static IP to its node when it comes up. For ... |
<p>In my terraform config files I create a Kubernetes cluster on GKE and when created, set up a Kubernetes provider to access said cluster and perform various actions such as setting up namespaces.</p>
<p>The problem is that some new namespaces were created in the cluster without terraform and now my attempts to impor... | <p>the issue lies with the dynamic data provider. The <code>import</code> statement doesn't have access to it.</p>
<p>For the process of importing, you have to hardcode the provider values.</p>
<p>Change this:</p>
<pre><code>provider "kubernetes" {
version = "~> 1.8"
host ... |
<p>In Google Cloud Platform, my goal is to have one cluster with a message queue and a pod to consume these in another cluster with MCS (Multi Cluster Service). When trying this out with only <em>one</em> cluster it went fairly smooth. I used the container name with the port number as the endpoint to connect to the red... | <p>Ok, got it working. I obviously misread the setup at one point and had to re-do some stuff to get it working.</p>
<p>Also, the <code>my-service-export</code> should probably have the same name as the service you want to export, in my case <code>redpanda</code>.</p>
<p>A helpful tool to check the connection without r... |
<p>I am trying to deploy a docker image on a kubernetes cluster.</p>
<p>What I want to achieve on the cluster is the same output as I achieve when I run this command locally (The output will be some generated files)</p>
<pre><code>sudo docker run \
--env ACCEPT_EULA="I_ACCEPT_THE_EULA" \
--volume /my-fold... | <p>try this:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: test
namespace: default
spec:
template:
metadata:
name: test
labels:
app: test
spec:
volumes:
- name: my-folder
hostPath:
path: /my-folder
containers:
- name... |
<p>When I deploy the Bitnami PostgreSQL Helm Chart (chart version 10.9.4, appVersion: 11.13.0), the passwords for any user are not updated or changed after the first installation.</p>
<p>Lets say that for the first installation I use this command:</p>
<pre><code>helm install postgresql --set postgresqlUsername=rpuser ... | <p>The database password and all of the other database data is stored in the Kubernetes PersistentVolume. Helm won't delete the PersistentVolumeClaim by default, so even if you <code>helm uninstall && helm install</code> the chart, it will still use the old database data and the old login credentials.</p>
<p><... |
<p>Recently some of the microservice AMQP applications are disconnected based on the solace event logs. However, the microservice AMQP applications did not detect any "CONNECTION_CLOSE" event. And, the applications did not trigger DISCONNECT action.</p>
<p>Is there any documentation of the reasons and the exp... | <p>See the discussion on this in the Solace Developer Community at <a href="https://solace.community/discussion/1342/reason-for-solace-client-client-disconnect" rel="nofollow noreferrer">https://solace.community/discussion/1342/reason-for-solace-client-client-disconnect</a></p>
|
<p>Is there any kubernetes api or kubectl command to delete older docker images that is lying on the device.</p>
<p>I know we can delete by using docker rm image but i want to do remotely through API.</p>
<p>Any alternative?</p>
| <p>The <code>kubelet</code> removes unused images automatically when the docker disk fullness reaches a configurable threshold.</p>
<p>See <a href="https://kubernetes.io/docs/concepts/architecture/garbage-collection/#containers-images" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/architecture/garbage-c... |
<p>I built a new cluster with Terraform for a AWS EKS, single node group with a single node.</p>
<p>This cluster is using <code>1.22</code> and cant seem to get anything to work correctly.</p>
<p>So Istio will install fine, i have installed versions <code>1.12.1</code>, <code>1.13.2</code>, <code>1.13.3</code> & <c... | <p>I seem to have fix it :)</p>
<p>It seems to be a port issue with the security groups. I was letting terraform build its own group.</p>
<p>When I opened all the ports up in the 'inbound' section it seemed to work.</p>
<p>I then closed them all again and only opened 80 and 443 - which again stopped Istio from auto-inj... |
<p>Looking for a solution to deploy multinode vespa to Kuberentes. I've refered docs but there is no info about deploying multinode to K8s.</p>
| <p>Please take a look at <a href="https://github.com/vespa-engine/sample-apps/tree/master/examples/operations/basic-search-on-gke" rel="nofollow noreferrer">https://github.com/vespa-engine/sample-apps/tree/master/examples/operations/basic-search-on-gke</a> for a small multinode example - and feel free to submit improve... |
<p>Have a simple program as shown below</p>
<pre><code>import pyspark
builder = (
pyspark.sql.SparkSession.builder.appName("MyApp")
.config("spark.sql.extensions", "io.delta.sql.DeltaSparkSessionExtension")
.config(
"spark.sql.catalog.spark_catalog",
... | <p>Could you try the following <code>Dockerfile</code>:</p>
<pre><code>FROM datamechanics/spark:3.1.1-hadoop-3.2.0-java-8-scala-2.12-python-3.8-dm17
USER root
WORKDIR /app
COPY main.py .
</code></pre>
<p>And then try deploying the <code>SparkApplication</code>:</p>
<pre class="lang-yaml prettyprint-override"><code>apiV... |
<p>I'm trying to use a <code>headless service</code> with an <code>endpoint</code> to forward traffic from within my cluster to my local development machine. I want to listen on port 80 on the service and call port 5002 on the endpoint. I have it setup as so:</p>
<p>Headless Service (listening on port 80 with a targetP... | <p>I managed to get it to work by removing the <code>clusterIP: None</code>. My manifest now looks like this:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: web
spec:
type: ClusterIP
ports:
- name: web
port: 80
targetPort: 5002
---
apiVersion: v1
kind: Endpoints
metadata:
name: web
subset... |
<p>We are using this chart:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v2
appVersion: 1.0
version: 0.0.1
description: Helm chart for setting up Kafka platform (Kafka, Zookeeper, Kafka Rest, Kafka Schema Registry, Kafka Connect, KSQL Server)
name: kafka-platform
dependencies:
- name: cp-helm-ch... | <p>You can use the subcharts map.</p>
<pre><code>{{ $sub := index .Subcharts "cp-kafka" }}
</code></pre>
<p>This will give you all built in variables and even the <code>.Values</code> from the values file.</p>
<p>For example, I create a chart and a subchart:</p>
<pre><code>helm create foo
helm create foo/char... |
<p>I try to integrate vault and <em>gitlab</em>.</p>
<p><em>Vault</em> side is ok , and I try to locate vault in our <em>gitlab-ci.yaml</em> but I confused something.</p>
<p>Where is the location of <em>vault</em> in <em>yaml</em> ?</p>
<p>We use <em>gitlab ee</em> (community).</p>
<p>Our <em>yaml</em>:</p>
<pre><code>... | <p>If you've not already done so, you first need to configure vault for jwt authentication.</p>
<pre><code>vault auth enable -path=jwt/gitlab jwt
</code></pre>
<p>Then configure the new jwt auth with a token validation endpoint that references your gitlab instance.</p>
<pre><code>vault write auth/jwt/config \
jwks_url=... |
<p>I am using outboundTrafficPolicy.mode ALLOW_ANY global option in Istio but any HTTPS requests are failing with a server certificate error:</p>
<pre><code>* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.execute-api.<my-region>.amazonaws.com
* start date: Jul 22 00:00:00 2021 GMT
* exp... | <p>The problem was caused by what probably is a bug on Istio: services on the Kubernetes cluster that had 443 ports (https) and didn't contain a port name as "https" seemed to be getting in the way of external https requests.
To solve the issue I just identified these services using the <code>istioctl proxy-c... |
<p>I have a terraform-managed EKS cluster. It used to have 2 nodes on it. I doubled the number of nodes (4).</p>
<p>I have a kubernetes_deployment resource that automatically deploys a fixed number of pods to the cluster. It was set to 20 when I had 2 nodes, and seemed evenly distributed with 10 each. I doubled that nu... | <p>Check a couple of things:</p>
<ol>
<li>Do your nodes show up correctly in the output of <code>kubectl get nodes -o wide</code> and do they have a state of ready?</li>
<li>Instead of pod affinity look into <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/" rel="nofollow nore... |
<p>I'm going through a tutorial on running jenkins on your kubernetes cluster. In the tutorial they're using minikube and for my existing cluster it's running on eks. When I apply my jenkins.yaml file, the pod it creates gets this error</p>
<pre><code> Normal Scheduled 27m default-schedule... | <p>As you already did, removing <code>imagePullPolicy: Never</code> would solve your first problem. Your second problem comes from the fact that you are trying to pull an image called <code>myjenkins:latest</code>, which doesn't exist. What you most likely want is <a href="https://hub.docker.com/r/jenkins/jenkins/" rel... |
<p>I have a vault setup in k8s with k8s auth enabled to allow vault agent to read secrets and export them as an environment variables to a k8s pod using K8s service account. everything is working fine if I’m using a single k8s namespace.</p>
<p>I am not able to use a service account from A namespace and trying to use i... | <p>Your error message is saying that your pod can't find service account <code>vault-ro</code> in the <code>B</code> namespace.</p>
<blockquote>
<p>error looking up service account B/vault-ro</p>
</blockquote>
<p>Are you setting a <code>pod.spec.serviceAccountName</code> entry in your yaml? If so, the service account m... |
<p>I got my own cluster which has a control-plane and worker. i trying to connect to PostgreSQL in the cluster using <code>psql -h <ingress-url> -p 5432 -U postgres -W</code>, but it occur an error:</p>
<pre><code>psql: error: server closed the connection unexpectedly
This probably means the server termin... | <p>Nginx ingress controller is an HTTP proxy. You are trying to route PGSQL traffic over HTTP, and that simply can't work.</p>
<p>What you need to do is expose a TCP service through nginx ingress controller. See <a href="https://kubernetes.github.io/ingress-nginx/user-guide/exposing-tcp-udp-services/" rel="nofollow nor... |
<p>I want to build a python script that accesses a kubernetes worker node, lists the network interfaces and captures the traffic of the choosen interface (with tcpdump for exemple) and then store the pcap file somewhere on the master node.</p>
<p>I want to know if it is possible to access a worker node from my master n... | <p>One way to connect nodes, when SSH isn't an option, would be to start some privileged container, that would access your nodes filesystem, disabling pid namespace isolation.</p>
<p>Say I have some node "infra1"</p>
<pre><code>$> kubectl get nodes
infra1 Ready infra 728d v1.21.6
</co... |
<p>Can anyone tell me how to list all namespaces in k8s using Go? I have been referencing this link but couldn't find anything that can list all namespaces.</p>
<p>Link: <a href="https://pkg.go.dev/github.com/gruntwork-io/terratest/modules/k8s" rel="nofollow noreferrer">https://pkg.go.dev/github.com/gruntwork-io/terrat... | <p>Try <a href="https://github.com/kubernetes/client-go/tree/master/examples" rel="nofollow noreferrer">kubernetes/client-go</a>, you can do like <code>clientset.CoreV1().Namespaces("").List(context.TODO(), metav1.ListOptions{})</code>. Your <code>clientset</code> maybe instantiate within the cluster or outsi... |
<p>I'm planning to deploy more than 30 apps in 5 namespaces. I will be using existing AWS EKS 1.21 Cluster. All the apps will be requiring external access because it's being used by clients. I don't want to use multiple load balancers to ease the management and also avoiding extra cost on AWS side (because ELB is charg... | <p>using the <a href="https://docs.aws.amazon.com/eks/latest/userguide/aws-load-balancer-controller.html" rel="nofollow noreferrer">AWS LB Controller</a> and not Nginx LB, you can have <strong>1x ALB</strong>, re-used by each namespace.</p>
<p>define Ingress.yaml file per namespace and annotate them with the same <a hr... |
<p>I was deploying an integration solution using Integration Studio, after deploying it to my kubernetes cluster the service appeared fine in my services list in the publisher.</p>
<p><strong>Problem</strong>: after creating an API from that service, the endpoint ends up being <strong>localhost:{port}</strong>, of cour... | <p>If you need to parameterize the serviceUrl in the metadata file, you must inject the parameterized values as environment variables in the MI instance.</p>
<p>Refer the point 5 in step 4 in here - <a href="https://apim.docs.wso2.com/en/latest/tutorials/develop-an-integration-with-a-managed-api/#step-4-configure-the-m... |
<p>What does this error mean? I have a simple airflow setup where I ran the <a href="https://airflow.apache.org/docs/helm-chart/stable/index.html" rel="nofollow noreferrer">airflow helm chart</a> on a local kind/kubernetes cluster with the <code>CeleryKubernetesExecutor</code></p>
<pre><code>│ scheduler [2022-05-25 06:... | <p>Seem to be an airflow <a href="https://github.com/apache/airflow/issues/23610" rel="nofollow noreferrer">issue</a> in version 2.3.0</p>
<p>It is fixed in <a href="https://airflow.apache.org/docs/apache-airflow/2.3.1/release_notes.html#airflow-2-3-1-2022-05-25" rel="nofollow noreferrer">2.3.1</a></p>
|
<p>Currently it takes quite a long time before the pod can be terminated after a kubectl delete command. I have the feeling that it could be because of the sleep command.</p>
<p>How can I make the container stop faster?
What best practices should I use here?</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
...
spec:... | <p>Add <code>terminationGracePeriodSeconds</code> to your spec will do:</p>
<pre><code>...
spec:
template:
spec:
terminationGracePeriodSeconds: 10 # <-- default is 30, can go as low as 0 to send SIGTERM immediately.
containers:
- image: alpine
</code></pre>
|
<p>I tried to run a docker container that I built on a mounted network volume under Parallels. I am adding this here to document the issue as it is different from: <a href="https://stackoverflow.com/questions/56784492/permissionerror-errno-13-permission-denied-manage-py">PermissionError: [Errno 13] Permission denied: ... | <p>The issue lies with the COPY step in the Docker manifest and how Parallels manages permissions on network shares. Even if volumes are shared with 'ignore ownership', Parallels will make the files appear to be owned by the currently logged in user (see: <a href="http://download.parallels.com/doc/pcs/html/Parallels_C... |
<p>I am creating a ClusterIssuer and a Certificate. However, there is <em><strong>no</strong></em> <code>tls.crt</code> on the secret! What I am doing wrong?</p>
<p>The clusterissuer looks like is running fine, but neither the keys has the crt</p>
<pre><code>apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
... | <p>With the information provided it is very hard to troubleshoot this, you could be hitting this <a href="https://github.com/cert-manager/cert-manager/issues/2111" rel="nofollow noreferrer">bug</a>.</p>
<p>You can start troubleshooting this kind of issues by following this procedure:</p>
<ol>
<li>Get the certificate re... |
<p>I created below statfulset on microk8s:</p>
<pre><code>apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgresql13
spec:
selector:
matchLabels:
app: postgresql13
serviceName: postgresql13
replicas: 1
template:
metadata:
labels:
app: postgresql13
spec:
container... | <p><a href="https://kubernetes.io/docs/concepts/storage/storage-classes/#allow-volume-expansion" rel="nofollow noreferrer">allowVolumeExpansion</a> and storage size does not apply to <code>hostPath</code>. The actual size will be the host volume size where the host path resides.</p>
|
<p>Is there a way to run <code>kubectl diff -f .</code> in that way so that output shows only file names that would be changed with <code>kubectl apply -f .</code> and not every single diff line...?</p>
| <p>You can use, something as below, here <code>KUBECTL_EXTERNAL_DIFF</code> is an env variable, to use a custom <code>diff</code> program with custom flags. So, basically, here we are telling <code>kubectl</code> to use <code>diff -qr</code> for displaying the difference. By default, kubectl use <code>diff -u -N</code>... |
<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... | <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>
|
<p>I am running Apache Kafka on Kubernetes via Strimzi operator.
I am trying to install Kafka Connect with mysql debezium connector.</p>
<p>This is the Connector configuration file:</p>
<pre><code>apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
name: my-connect-cluster
annotations:
strimzi.io/... | <p>I thought some role was missing from the node in the EKS cluster but that is not the case since the only thing needed to authenticate is the information contained in the secret. <br> <br></p>
<p>The error was actually in the secret creation: two details are very relevant:</p>
<ol>
<li>the --region flag in the aws e... |
<p>I'm getting a low disk space warning on a server where my microk8s and applications are installed. When I run the microk8s ctr image ls command, multiple images appear for an application. Does the "docker image prune -f" command in Docker have an equivalent in microk8s? Or is there a way possible?</p>
| <p>If you want to delete all custom added images from the built-in library, you can do this:</p>
<pre><code># get all images that start with localhost:32000, output the results into image_ls file
sudo microk8s ctr images ls name~='localhost:32000' | awk {'print $1'} > image_ls
# loop over file, remove each image
ca... |
<p>I want to test the queuing and preemption features of Kubernetes (v1.21.0). I run Kubernetes using Minikube with a pod limit of 10. I have a script that creates two priority classes: 'low-priority' and 'high-priority'.</p>
<p><a href="https://i.stack.imgur.com/P5dpe.png" rel="nofollow noreferrer"><img src="https://i... | <p>Fair question, fair assumption.</p>
<p>I've run into a similar situation and was also disappointed to see that k8s does not evict low-priority pods in favor of high-priority ones.</p>
<p>A couple of consultations with k8s experts revealed that indeed, when framed into namespace quotas, k8s is not expected to be as a... |
<p>I created below statfulset on microk8s:</p>
<pre><code>apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgresql13
spec:
selector:
matchLabels:
app: postgresql13
serviceName: postgresql13
replicas: 1
template:
metadata:
labels:
app: postgresql13
spec:
container... | <blockquote>
<p>Isn't is supposed to not use more than what the PVC have?</p>
</blockquote>
<p>This is a misunderstanding. What you specify in a <strong>resource request</strong> is the resources your application <em>needs at least</em>. You might get more. You typically use <strong>resource limits</strong> to set hard... |
<p>I am trying to migrate <code>cert-manager</code> to API v1, I was able to migrate the Issuer to ClusterIssue (the first part of the YAML). However, I am dealing with a breaking change that there is no more <code>acme</code> on kind Certificate</p>
<pre><code>apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadat... | <p>As part of v0.8, a new format for configure ACME Certificate resources has been introduced. Notably, challenge solver configuration has moved from the Certificate resource (under <code>certificate.spec.acme</code>) and now resides on your configure Issuer resource, under <code>issuer.spec.acme.solvers</code>.</p>
<p... |
<p>first post on stack overflow, hope i will get some help :)</p>
<p>I've been struggling for a while trying to get this to work.
So basically i have kubernetes cluster in Oracle Cloud.
I'm using nginx ingress controller + cert manager for certificates.</p>
<p>When i deployed nginx ingress controller Oracle Cloud provi... | <p>OCI <strong>TCP</strong> listeners to <strong>HTTP</strong> listeners backed as HTTPS or SSL passthrough.</p>
<p>You can first create the <strong>self-sign</strong> <strong>SSL</strong> <strong>certificate</strong> if you are attaching it at the <strong>LB</strong> level.</p>
<p>If you are using cert-manager and sav... |
<p>I can create a secret using a single line command like so:</p>
<pre><code>kubectl -n myns create secret generic my-secret --from-literal=type=super --from-literal=url=example.com --from-file=samples=sample.txt
</code></pre>
<p>But it's missing a label when this is created. I want to keep it as a single line command.... | <p>There isn't an option in the <code>kubectl create secret</code> command to add a label.</p>
<p>You will need to run a second command to add the label:</p>
<pre class="lang-bash prettyprint-override"><code>kubectl label secret my-secret -n myns "foo=bar"
</code></pre>
<p>But you could technically do it on o... |
<p>For <code>kubectl describe</code> I can abbreviate a few classes of resources, for example:</p>
<pre><code>po/xxx -> pods/xxx
rs/xxx -> replicasets/xxx
</code></pre>
<p>Where can I find the full list?</p>
<p>I'm trying to find the abbreviation for deployments.</p>
| <p>To get a full list of your resources, including their <em>shortname</em>, use:</p>
<pre><code>kubectl api-resources
</code></pre>
<p>e.g. Deployment has the shorthname <code>deploy</code>.</p>
<hr />
<p>Example output from <code>kubectl api-resources</code>:</p>
<pre><code>NAME SHORTNAMES APIVERSION NAMESP... |
<p>I am trying to understand the difference between pods and annotations.</p>
<p>Standard documentation says that annotations captures "non-identifying information".
While on labels, selectors can be applied. Labels are used to organise objects in kubernetes cluster.</p>
<p>If this is the case then why istio ... | <p>As Extending the Burak answer,</p>
<blockquote>
<p>Kubernetes labels and annotations are both ways of adding metadata to
Kubernetes objects. The similarities end there, however. Kubernetes
labels allow you to identify, select and operate on Kubernetes
objects. Annotations are non-identifying metadata and do none of ... |
<p>I'm just trying to run a simple batch job and getting this error "MountVolume.SetUp failed for volume "kube-api-access-cvwdt" : object "default"/"kube-root-ca.crt" not registered"</p>
<p>Here's my logs when running describe pod on that pod</p>
<pre><code> Normal Scheduled ... | <p>You might be facing a bug on the kubelet that is discussed <a href="https://github.com/kubernetes/kubernetes/issues/105204" rel="noreferrer">here</a> and was fixed in K8s 1.23.6.</p>
<p>Failure should be sporadic, so a simple recreation of your Pod might already fix it. More reliably, you could upgrade K8s or disabl... |
<p>I have a GKE cluster that uses a mix of Cloud IAM and cluster RBAC rules for resource access. For granularity, we use RBAC bindings for certain resources on the cluster, but I'm unable to find a place where those events are logged.</p>
<p>How do I see the logs for when cluster RBAC denies a user the permissions to d... | <p>You can check the Kube API logs</p>
<pre><code>kubectl proxy &
curl -s http://localhost:8001/logs/kube-apiserver.log
</code></pre>
<p>While GKE logs : <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/audit-logging#viewing_logs" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/d... |
<p>I am trying to authenticate in ArgoCD using Keycloak. I am following <a href="https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/keycloak/" rel="nofollow noreferrer">this guide</a>, but there is a problem. ArgoCD redirects me to http://URL/<strong>auth</strong>/login?return_url=... which throws... | <p>I had the same issue, the culprit:
the missing “url: https//:yourargocdurl”
in the comfigMap argocd-cm</p>
|
<p>I get the following error message whenever I run a pulumi command. I verified and my kubeconfig file is <code>apiVersion: v1</code> I updated <code>client.authentication.k8s.io/v1alpha1</code> to <code>client.authentication.k8s.io/v1beta1</code> and still have the issue, what could be the reason for this error messa... | <p>The bug report for this issue is <a href="https://github.com/pulumi/pulumi-eks/issues/599" rel="noreferrer">here</a></p>
<p>The underlying cause is that the AWS cli shipped a breaking change in a minor version release. You can see this <a href="https://github.com/aws/aws-cli/issues/6920" rel="noreferrer">here</a></p... |
<p>In <a href="https://kubernetes.github.io/ingress-nginx/deploy/baremetal/" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/deploy/baremetal/</a>
In metalLB mode, one node attracts all the traffic for the ingress-nginx
By node port we can gather all traffic and loadbalance it podes by service</p>
... | <p>I was also struggling a bit to understand: why would i need a service of type loadbalancer, if i can use a nodePort service, which would allow me to access a service through a nodeport on all the nodes (loadbalanced by kube-proxy).</p>
<p>I think the main reason is security. Nodeport service forces you to expose you... |
<p>I have an nginx-pod which redirects traffic into Kubernetes services and stores related certificates insides its volume. I want to monitor these certificates - mainly their expiration.</p>
<p>I found out that there is a TLS integration in Datadog (we use Datadog in our cluster): <a href="https://docs.datadoghq.com/i... | <h3>TLS Setup on Host</h3>
<p>You can use a host type of instance to track all your certificate expiration dates</p>
<p>1- Install TLS Integration from datadog UI</p>
<p>2- Create instance and install datadog agent in there.</p>
<p>3- Create a /etc/datadog/conf.d/tls.d/conf.yaml</p>
<p>4- Edit following template for yo... |
<p>I have installed nginx ingress controller. As I understand that one of the main reasons to use ingress is to save money by not creating multiple load balancers.</p>
<p>My kubesphere-console service yaml manifest looks like below:</p>
<pre><code>cat kubesphere-console.yaml
apiVersion: v1
kind: Service
metadata:
an... | <p>Usually, you can access your services directly through the external IP (wildcard) of the ingress-controller svc if you create an ingress without a specified host. You can set a domain name for the ingress after configuring DNS resolution correctly.</p>
<p>Here is an example of exposing both <code>ks-apiserver</code>... |
<p>I am fairly new to GCP and I have a rest URI to upload large files.<br />
I have a ngress-nginx-controller service and want to change it to upload files larger than 1mb and set a limit.</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
... | <p>If you need to increase the body size of files you upload via the ingress controller, you need to add an annotation to your ingress resource:</p>
<pre><code>nginx.ingress.kubernetes.io/proxy-body-size: 8m
</code></pre>
<p>Documentation available here: <a href="https://kubernetes.github.io/ingress-nginx/user-guide/ng... |
<p>This is my first time using GitLab for EKS and I feel so lost. I've been following the docs and so far I</p>
<ul>
<li>Created a project on GitLab that contains my kubernetes manifest files</li>
<li>Created a config.yaml in that project in the directory .gitlab/agents/stockagent</li>
</ul>
<p>Here's the <strong>confi... | <p>In your case, I guess the image(mpriv32/stock-api:latest) that you are using doesn't have a dependency kubectl as a global executable, please use an image as an example - bitnami/kubectl which "contains" kubectl</p>
<pre><code>deploy:
image:
name: bitnami/kubectl
</code></pre>
<p>the image keyword is... |
<p>Scenario is like this:</p>
<p>I have a pod running in a node in K8s cluster in GCP. cluster is created using kops and pod is created using kne_cli.</p>
<p>I know only the name of the pod e.g. "test-pod".</p>
<p>My requirement is to configure something in the node where this pod is running. e.g. I want to u... | <p>You the Job or deployment or POD, not sure how POD is getting managed. If you just want to run that task Job is good fir for you.</p>
<p>One option is to use <strong>SSH</strong> way :</p>
<p>You can run one POD inside that you get a list of Nodes or specific node as per need and run SSH command to connect with that... |
<p>Any help or hint would greatly appreciated.
I am using Windows 11 Professional.</p>
<p>I am connect to AWS and when I type the command "kops" I get the below error message.</p>
<p>[ec2-user@ip-172-31-10-126 ~]$ curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s <a href="https://ap... | <p>You're only using Windows 11 as a ssh client - it's not doing anything for Kubernetes.</p>
<p>As @jordanm indicates you're trying to download the MacOS version. Change your command to:</p>
<pre><code>curl -Lo kops https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes... |
<p>To run prefect jobs in azure kubernetes (aks) virtual nodes, besides adding the recommended <code>nodeSelector/tolerations</code>:</p>
<pre class="lang-py prettyprint-override"><code>"nodeSelector": {
"kubernetes.io/role": "agent",
"beta.kubernetes.io/os": "linux&... | <pre><code>command": ["tini", "-g", "--"],
</code></pre>
<p>solves the issue and allows prefect jobs to run in aks virtual nodes.</p>
<p>Here an example of a working <code>job_template</code>:</p>
<pre class="lang-py prettyprint-override"><code>{
"apiVersion": "batc... |
<p>I am trying to execute below commands in a Kubeflow(v1.4.1) Jupyter Notebook.</p>
<pre><code>KServe = KServeClient()
KServe.create(isvc)
</code></pre>
<p>I am getting mentioned error while attempting to execute above mentioned command.</p>
<pre><code>ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPH... | <p>Got to know that KServe is not comaptible with Kubeflow version 1.4 and works for Kubeflow version >=1.5.</p>
<p>Switching to kfserving 0.6 resolved my issue.</p>
|
<p>I have a created an nginx pod and nginx clusterIP service and assign an externalIP to that service like below</p>
<pre><code>NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
test-nginx ClusterIP 10.110.93.251 192.168.0.10 443/TCP,80/TCP,... | <p>You assigned an external ip to a <code>ClusterIP</code> service in Kubernetes, so you can access your application from outside the Cluster, but you are concerned about the Pods having access to that external ip and want to block the dns resolution.</p>
<p>This is not the best approach to your issue, Kubernetes has s... |
<p>I have to check for mandatory values based on some condition.<br />
My <em>values.yaml</em> is as below</p>
<pre class="lang-yaml prettyprint-override"><code>id: 3
test:
id: 2
test1:
id: 1
</code></pre>
<p>In my template, I need to check if <code>id</code> is present at <code>.Values.test.test1.id</code> and ass... | <p>It seems like a perfect fit for the <a href="https://helm.sh/docs/chart_template_guide/function_list/#coalesce" rel="nofollow noreferrer"><code>coalesce</code> function</a>, which</p>
<blockquote>
<p>takes a list of values and returns the first non-empty one.</p>
</blockquote>
<p><sup><em>Source: <a href="https://he... |
<h2 id="background">Background:</h2>
<p>I have a GKE cluster which has suddenly stopped being able to pull my docker images from GCR; both are in the same GCP project. It has been working well for several months, no issues pulling images, and has now started throwing errors without having made any changes.</p>
<p>(NB: ... | <p>I don't know if it still helps, but I had the same issue and managed to fix it.</p>
<p>In my case I was deploying GKE trough terraform and did not specify <code>oauth_scope</code> property for node pool as show in <a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_clust... |
<p>I am using <a href="https://airflow.apache.org/docs/helm-chart/stable/index.html" rel="nofollow noreferrer">the Helm chart for Apache Airflow</a> and trying to set the password of the default user to the value of an environment variable:</p>
<pre class="lang-yaml prettyprint-override"><code>airflow:
env:
- nam... | <p>Use as follow, this is as described in <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/#using-environment-variables-inside-of-your-config" rel="nofollow noreferrer">official examples</a>.</p>
<pre><code>$(PASSWORD)
</code></pre>
|
<p>In my <code>istio-system</code> namespace, I have the following secret</p>
<pre><code>▶ k get secret istio-ca-secret -o yaml
apiVersion: v1
data:
ca-cert.pem: LS0tLS1CR...
ca-key.pem: LS0..
cert-chain.pem: ""
key.pem: ""
root-cert.pem: ""
</code></pre>
<p>While the following q... | <p>you need to escape the dot in "ca-cert.pem" to work.</p>
<p>like this</p>
<pre><code>kubectl get secret istio-ca-secret -n istio-system -o jsonpath="{.data.ca-cert\.pem}"
</code></pre>
|
<p>I am trying to use workflow identity for my kubernetes cluster. I have created the service account on a new namespace. My issue is that I am not able to specify the name space when I am trying to add the service account name on the pod deployment YML.</p>
<p>Following is my pod spect file:</p>
<pre><code>apiVersion:... | <p><code>...I have created the service account on a new namespace. My issue is that I am not able to specify the name space when I am trying to add the service account name on the pod deployment YML.</code></p>
<p>To assign the created service account to your deployment, you can create the deployment in the same namesp... |
<p>I have a few services running that require the Source IP to be preserved to perform authentication properly. I am running a Kubernetes environment in AKS using Nginx as my Ingress controller and am having problems understanding how I can implement this properly.</p>
<p>I read through this</p>
<p><a href="https://kub... | <p>You clearly need to add that setting to the <code>nginx ingress controller</code> service, the one with <code>type</code> = <code>LoadBalancer</code>.</p>
<p>If you think about it, there is no other option. <code>Nginx ingress controller</code> is the entry point in your cluster, so if you don't keep the source IP a... |
<p>I'm trying to deploy a Kubernetes cluster in Oracle Cloud Infrastructure using Terraform.</p>
<p>I want that every node deployed (in private subnet) has the Bastion agent plugin activate in Cloud Agent.</p>
<p>But I cannot see how to define the details of the instance (setting agent_config in the node pool instances... | <p>You can use the "<strong>cloudinit_config</strong>" to run the custom script in OKE node pool in OCI.</p>
<pre><code>second_script_template = templatefile("${path.module}/cloudinit/second.template.sh",{})
</code></pre>
<p>More scripts like</p>
<pre><code>data "cloudinit_config" "wo... |
<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>I had the same problem - which is why I ended on this question. When I find out how to use the <code>IngressRoute</code> I'll update this answer.</p>
<p>This answer describes how to use <code>NodePort</code> instead.</p>
<pre class="lang-bash prettyprint-override"><code>kubectl patch svc kubernetes-dashboard -p '{&q... |
<p>When setting up an ingress in my kubernetes project I can't seem to get it to work. I already checked following questions:</p>
<ul>
<li><a href="https://stackoverflow.com/questions/65193758/enable-ingress-controller-on-docker-desktop-with-wls2">Enable Ingress controller on Docker Desktop with WLS2</a></li>
<li><a hr... | <p>I knew this is quite outdated thread, but i think my answer can help later visitors</p>
<p><strong>Answer</strong>: You have to install ingress controller. For exam: ingress-nginx controller,</p>
<p>either using <strong>helm</strong>:</p>
<pre><code>helm upgrade --install ingress-nginx ingress-nginx \
--repo https:/... |
<p>I'm trying to apply the same job history limits to a number of CronJobs using a <a href="https://github.com/kubernetes-sigs/kustomize/blob/572d5841c60b9a4db1a75443b8badb7e8334f727/examples/patchMultipleObjects.md" rel="nofollow noreferrer">patch</a> like the following, named <code>kubeJobHistoryLimit.yml</code>:</p>... | <p>With kustomize 4.5.2, your patch as written doesn't apply; it fails with:</p>
<pre><code>Error: trouble configuring builtin PatchTransformer with config: `
path: kubeJobHistoryLimit.yml
target:
kind: CronJob
`: unable to parse SM or JSON patch from [apiVersion: batch/v1
kind: CronJob
spec:
successfulJobsHistoryL... |
<p>We have multiple microservices and a couple of them use some external APIs. Certificates to connect to those external ones from our services are periodically rotated. How can we update our services to use the new public certs of external APIs without much disruption and much outage at our end. We use kubernetes and ... | <p>You can use the <a href="https://kubernetes.io/docs/concepts/configuration/configmap/" rel="nofollow noreferrer">configmap</a> to store your certificate and mount it to your deployment.</p>
<p>Configmap will get auto-updated inside the Running POD without restarting the POD. So you have to just mount the config map ... |
<p>I am unable to issue a working certificate for my ingress host in k8s. I use a ClusterIssuer to issue certificates and the same ClusterIssuer has issued certificates in the past for my ingress hosts under my domain name *xyz.com. But all of a sudden neither i can issue new Certificate with state 'True' for my host ... | <p>Works only with Nginx Ingress Controller</p>
<p>I was using ClusterIssuer but I changed it to Issuer and it works.</p>
<p>-- Install cert-manager (Installed version 1.6.1) and be sure that the three pods are running</p>
<p>-- Create an Issuer by appling this yml be sure that the issuer is running.</p>
<pre><code>api... |
<p>I am learning kubernetes on minikube. I studied the kubernetes official documentation and followed their <a href="https://kubernetes.io/docs/tutorials/kubernetes-basics/expose/expose-interactive/" rel="nofollow noreferrer">interactive tutorial</a> in a sandboxed environment. Everything worked fine in the sandbox but... | <p>I also had this problem on my m1 mac. I was able to access the service by using this command :</p>
<pre class="lang-sh prettyprint-override"><code>kubectl port-forward svc/kubernetes-bootcamp 8080:8080
</code></pre>
<p>You can see <a href="https://levelup.gitconnected.com/minikube-tips-tricks-739f4b00ac17" rel="nore... |
<p>I have one question which I couldn't find a clear explaination.</p>
<p>If I have a service :</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: my-app-svc
namespace: myns
spec:
type: LoadBalancer
ports:
- name: http
port: 8080
targetPort: 8282
selector:
app: my-app
</code></pre... | <p><code>Load Balancer --> Node port --> service port(8080) --> Pod port(8282)</code></p>
<p>Your diagram is correct for instance mode:</p>
<blockquote>
<p>Traffic reaching the ALB is routed to NodePort for your service and then proxied to your pods. This is the default traffic mode.</p>
</blockquote>
<p>There... |
<p>Dear Cassandra Admins,</p>
<p>I am thinking if Cassandra is appropriate to be installed on Kubernetes Cluster, as I have never implemented that way before.
I appreciate it if you could share some thoughts ? Here are my questions:</p>
<ol>
<li><p>I know there exist solutions to install Cassandra on K8s platforms. But... | <blockquote>
<p>If I want to install Cassandra in "on-prem" Kubernetes cluster(NOT
public cloud like Azure, AWS or Google), what "on-prem" Kubernetes
solutions you choose?</p>
</blockquote>
<p>Minikube, MicroK8s and other are not for production usage if you setting for just development option you ca... |
<p>I've setup OpenTelemetry in Kubernetes. Below is my config.</p>
<pre><code>exporters:
logging: {}
extensions:
health_check: {}
memory_ballast: {}
processors:
batch: {}
memory_limiter:
check_interval: 5s
limit_mib: 819
spike_limit_mib: 256
receivers:
jaeger:
protocols:
grpc:
... | <p>You have configured only <code>logging</code> exporter, which exports data to the console via zap.Logger only = it doesn't write data to the prometheus.</p>
<p>Configure also <code>prometheusremotewrite</code> exporter and add it to the metric pipeline. Minimalistic example:</p>
<pre><code>receivers:
prometheus:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.