prompt stringlengths 65 38.7k | response stringlengths 41 29.1k |
|---|---|
<p>I want to add an additional scrape config into Prometheus. I have followed the below method.</p>
<p><a href="https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/additional-scrape-config.md" rel="nofollow noreferrer">https://github.com/prometheus-operator/prometheus-operator/blob/main/D... | <p>This is somehow wrong in the Documentation, you have to use additionalScrapeConfigs<strong>Secret</strong>:</p>
<pre><code> additionalScrapeConfigsSecret:
enabled: true
name: additional-scrape-configs
key: prometheus-additional.yaml
</code></pre>
<p>Else you get the error <code>cannot unmarshal !!map in... |
<p>it was a working set up and no manual changes were made.</p>
<p>when we are trying to deploy application on aks; it fails to pull an image from the acr.</p>
<p>as per kubectl describe po output:</p>
<p>Failed to pull image "xyz.azurecr.io/xyz:-beta-68": [rpc error: code = Unknown desc = Error response from... | <p>There is a bug in ubuntu that impacts AKS (global).
You can follow the link below to see the status.
<a href="https://status.azure.com/en-us/status" rel="nofollow noreferrer">https://status.azure.com/en-us/status</a>
In addition, there is a thread here you can follow the suggestions to overcome this issue.
<a href="... |
<p>Every deepcopy generated file that is produced by <code>make</code> with kubebuilder produces a file with a <code>// +build !ignore_autogenerated</code> build tag directive at the top.</p>
<pre><code>//go:build !ignore_autogenerated
// +build !ignore_autogenerated
/*
Licensed under the Apache License, Version 2.0 (... | <p>It's used by <code>controller-gen</code> to identify files it generated, it will only overwrite those.</p>
<p>E.g. edit a generated <code>zz_generated.deepcopy.go</code> and run <code>make generate</code> => the file is overwritten.</p>
<p>Now edit the file again, also remove the two lines with the build constrai... |
<p>I'm trying to set up a K3s cluster. When I had a single master and agent setup cert-manager had no issues. Now I'm trying a 2 master setup with embedded etcd. I opened TCP ports <code>6443</code> and <code>2379-2380</code> for both VMs and did the following:</p>
<pre class="lang-none prettyprint-override"><code>VM1:... | <p>A good starting point for troubleshooting issues with the webhook can be found int the <a href="https://cert-manager.io/docs/concepts/webhook/#known-problems-and-solutions" rel="nofollow noreferrer">docs</a>, e.g. there is a section for <a href="https://cert-manager.io/docs/concepts/webhook/#known-problems-and-solut... |
<p>I created a private CloudSQL instance for a postgres db.
I followed the documentation at <a href="https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine" rel="nofollow noreferrer">https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine</a> and applied the yaml changes and restarted the dep... | <p>If you just to check the connection</p>
<p>you can run one ubuntu or busybox container to check the connection with the Postgres database.</p>
<pre><code>kubectl run -i --tty busybox --image=busybox --restart=Never -- sh
$> # ls
</code></pre>
<p>Once you are in the container you can run the command from the con... |
<p>I'm running kuberenetes in localhost, the pod is running and I can access the services when I port forwarding:</p>
<pre><code>kubectl port-forward svc/my-service 8080:8080
</code></pre>
<p>I can get/post etc. the services in localhost.</p>
<p>I'm trying to use it with ingress to access it, here is the yml file:</p>
... | <p>Is ingress resource in the same namespace as the service? Can you share the manifest of service? Also, what do logs of nginx ingress-controller show and what sort of error do you face when hitting the endpoint in the browser?</p>
<p>Ingress's YAML file looks OK to me BTW.</p>
|
<p>I've been trying to deploy a workflow in Argo with Kubernetes and I'm getting this error</p>
<p><a href="https://i.stack.imgur.com/BGPAk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BGPAk.png" alt="![Kubernetes Argo Error" /></a></p>
<p>Can someone help me to know the root of the issue?</p>
<p>... | <p>The way Argo solves that problem is by using compression on the stored entity, but the real question is whether you have to have all 3MB worth of that data at once, or if it is merely more convenient for you and they could be decomposed into separate objects with relationships between each other. The kubernetes API ... |
<p>How do I run a new pipeline with it's own isolated Dockerfile in Airflow Kubernetes ?</p>
<p>I've been using Dagster and I can run new pipelines on their own Dockerfile, but can't figure out how to do this in Airflow</p>
| <p>If you want to run a docker container task on Kubernetes using Airflow, regardless the executor you are using and how you deployed Airflow server, you can use <a href="https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes/stable/operators.html" rel="nofollow noreferrer">KubernetesPodOperator</a>.<... |
<p>I am configuring jenkins + jenkins agents in kubernetes using this guide:</p>
<p><a href="https://akomljen.com/set-up-a-jenkins-ci-cd-pipeline-with-kubernetes/" rel="nofollow noreferrer">https://akomljen.com/set-up-a-jenkins-ci-cd-pipeline-with-kubernetes/</a></p>
<p>which gives the below example of a jenkins pipeli... | <p>Using one single image to handle all process is funtionally feasible, but it adds burden to your <strong>operation</strong>.</p>
<p>We don't always find an image that fulfills all our needs, i.e. desired tools with desired version. Most likely, you are going to build one.</p>
<p>To achieve this, you need to build do... |
<p>I want to create a private Kubernetes registry from this tutorial: <a href="https://www.linuxtechi.com/setup-private-docker-registry-kubernetes/" rel="nofollow noreferrer">https://www.linuxtechi.com/setup-private-docker-registry-kubernetes/</a></p>
<p>I implemented this:</p>
<pre><code>Generate Self-Signed Certifica... | <p>For 1st question, you can try creating <code>PersistentVolume</code> with node affinity set to specific controlplane node and tie it with the deployment via <code>PersistentVolumeClaim</code>.Here's an example:</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
name: pv1
spec:
capacity:
storage: ... |
<p>I am trying to configure TLS using edge termination on openshift, am passing the TLS certificates and private key in values.yaml and referring it in route.yaml file, when I execute the helm chart the creation of the route fails due to improper indentation and newlines introduced while copying the certificate from va... | <p>add | before certificate like @Daein answer, but also in route yaml add <strong>quote</strong>
certificate:
{{ .certificate | quote }}</p>
|
<p>Sorry I'm quite a noob at Go so hope this isn't a stupid question. I know pointers in a general sense but struggling with Go semantics.</p>
<p>I can't get this to work:</p>
<pre><code>func DeleteOldCronJob(c client.Client, ctx context.Context, namespace string, name string) error {
cronJob := batchv1beta1.CronJo... | <pre><code>func (client.Reader).Get(ctx context.Context, key types.NamespacedName, obj client.Object) error
Get retrieves an obj for the given object key from the Kubernetes Cluster. obj must be a struct pointer so that obj can be updated with the response returned by the Server.
</code></pre>
<p>so the idea is right t... |
<p>I am using the kubernetes operator to create a custom resource in the cluster, the CR has the <code>Status</code> field populated, but when the object gets created the <code>Status</code> field is empty.</p>
<p>This is how I am creating the CR:</p>
<pre><code>reconcile.Create(ctx, &object)
</code></pre>
<p>This ... | <p>The architecture of Kubernetes API and resources follows a pattern.</p>
<ol>
<li><p>Clients may create resources, by specifying a <em>desired state</em> (This is the <code>spec:</code> part of a resource). This is a "create" request sent to the API Server.</p>
</li>
<li><p>Controllers, subscribe/watch to c... |
<p>Prometheus has metrics such as <code>container_cpu_usage_seconds_total</code>. However, they are only grouped by pod. How can I group them by deployment/cronjobs/etc?</p>
| <p>I was able to handle this with the following query:</p>
<p><code>((label_replace((rate(container_cpu_usage_seconds_total{image!=""}[2m]) * on(pod) group_left(owner_name) (sum without (instance) (kube_pod_owner))), "replicaset", "$1", "owner_name", "(.*)")) * on(repli... |
<p>I have a single values.yaml file with the following two containers:</p>
<pre><code>...
nginx:
image:
repository: _ADDRESS_
tag: stable
pullPolicy: IfNotPresent
flask:
image:
repository: _ADDRESS_
tag: stable
pullPolicy: IfNotPresent
...
</code></pre>
<p>Is it best practice to duplicate... | <blockquote>
<p>Is it best practice to duplicate the following code manually within the deployment file for each container</p>
</blockquote>
<p>Yes.</p>
<p>In principle it's possible to write a generic Helm template that produces a Deployment YAML specification. But then you'll run into a problem where the Flask appli... |
<p>I want to create a private Kubernetes registry from this tutorial: <a href="https://www.linuxtechi.com/setup-private-docker-registry-kubernetes/" rel="nofollow noreferrer">https://www.linuxtechi.com/setup-private-docker-registry-kubernetes/</a></p>
<p>I implemented this:</p>
<pre><code>Generate Self-Signed Certifica... | <p>You can try with following file:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
name: private-repository-k8s
labels:
app: private-repository-k8s
spec:
replicas: 1
selector:
matchLabels:
app: private-repository-k8s
template:
metadata:
labels:
app: private-repos... |
<p>If we have a role change in the team, I read that EKS creator can NOT be transferred. Can we instead rename the creator's IAM user name via aws cli? Will that break EKS?</p>
<p>I only find ways to add new user using configmap but this configmap doesn't have the root user in there.</p>
<pre><code>$ kubectl edit confi... | <p>There is no way to transfer the root user of an EKS cluster to another IAM user. The only way to do this would be to delete the cluster and recreate it with the new IAM user as the root user.</p>
|
<p>I use this manifest configuration to deploy a registry into 3 mode Kubernetes cluster:</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
name: pv1
namespace: registry-space
spec:
capacity:
storage: 5Gi # specify your own size
volumeMode: Filesystem
persistentVolumeReclaimPolicy: Retain
l... | <p>It seems like your node has taints hence pods are not getting scheduled. Can you try using this command to remove taints from your node ?</p>
<pre><code>kubectl taint nodes <node-name> node-role.kubernetes.io/master-
</code></pre>
<p>or</p>
<pre><code>kubectl taint nodes --all node-role.kubernetes.io/master-
... |
<p>I have deployed an AWS ALB Controller and I create listeners with ingress resources in a EKS cluster.</p>
<p>The steps I followed are the following:</p>
<ul>
<li>I had an ingress for a service named <code>first-test-api</code> and all where fine</li>
<li>I deploy a new Helm release [<code>first</code>] with just ren... | <p>I will provide some generic advice on things I would look at, but it might be better to detail a small example.</p>
<p>Yes, ALB controller should automatically manage changes on the backend.</p>
<p>I would suggest ignoring the helm chart and looking into the actual objects:</p>
<ul>
<li><code>kubectl get ing -n <... |
<p>enviroment:centos7.0
I want to build K8s cluster that have 3 nodes,one of them is the master;every pod'status is running,but there is a pod name test-claim is pending, the pvc is pending status:
<a href="https://i.stack.imgur.com/w6aE2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w6aE2.png" alt... | <p>I finally find the solution don't need to edit the /etc/kubernetes/manifests/kube-apiserver.yaml file to add this row:- --feature-gates=RemoveSelfLink=false;this is not help for me. the solution is :</p>
<pre><code>1、docker pull vbouchaud/nfs-client-provisioner
</code></pre>
<p>Status: Downloaded newer image for vbo... |
<p>In my project, we let developers update a repo containing all of the kubernetes manifests. The repo uses kustomize. I've decided to add a validation / lint step to our CI to catch mistakes early.</p>
<p>To do so, I'm trying to run <code>kustomize build</code> on everything in the repo. Where I'm running into trouble... | <p>The solution is to create a dummy filter for processing ksops resources. For example, something like this:</p>
<pre><code>mkdir -p fakeplugins/viaduct.ai/v1/ksops
ln -s /bin/true fakeplugins/viaduct.ai/v1/ksops/ksops
export KUSTOMIZE_PLUGIN_HOME=$PWD/fakeplugins
kustomize build --enable-alpha-plugins
</code></pre>
... |
<p>I have a Mac with Apple Silicon (M1) and I have minikube installed. The installation was done following <a href="https://medium.com/@seohee.sophie.kwon/how-to-run-a-minikube-on-apple-silicon-m1-8373c248d669" rel="nofollow noreferrer">https://medium.com/@seohee.sophie.kwon/how-to-run-a-minikube-on-apple-silicon-m1-83... | <p>Have you tried to follow any online material to delete Minikube?? Test if this works for you and let me know if you face any issues.</p>
<p>Try using the below command :</p>
<pre><code>minikube stop; minikube delete &&
docker stop $(docker ps -aq) &&
rm -rf ~/.kube ~/.minikube &&
sudo rm -rf ... |
<p>I have deployed simple app -NGINX and a Load balancer service in Kubernetes.
I can see that pods are running as well as service but calling Loadbalancer external IP is givings server error -site can't be reached .Any suggestion please</p>
<p><strong>app.yaml</strong></p>
<pre><code>apiVersion: apps/v1
kind: Deployme... | <p>If you are using Minikube to access the service then you might need to run one extra command. But if this is on a cloud provider then you have an error in your service file.</p>
<p>Please ensure that you put two space in yaml file but your indentation of the yaml file is messed up as you have only added 1 space. Als... |
<p>I try to run my private docker image along with the <strong>docker-dind</strong> container to be able to run docker commands from the private image in Kubernetes.
My only issue is that the <code>docker run</code> command does not read the docker-secrets so fails by requiring to run <code>docker login</code>. How cou... | <p>docker:dind will create ca, server, client cert in <code>/certs</code>.
Just create <code>emptyDir</code> volume to share cert.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Pod
metadata:
name: myapp
labels:
name: myapp
spec:
volumes:
- name: docker-tls-certdir
emptyDir: ... |
<p>I tried to <a href="https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/deployment/resource-providers/standalone/docker/#further-customization" rel="nofollow noreferrer">override the container entry point</a> of a Flink application in a Dockerfile, but it looks like that the <a href="https://nightlies.ap... | <p>You can overwrite it via:</p>
<pre class="lang-yaml prettyprint-override"><code> flinkConfiguration:
kubernetes.entry.path: "/custom-docker-entrypoint.sh"
</code></pre>
<p>The Operator (by default) uses Flink's native Kubernetes integration. See: <a href="https://nightlies.apache.org/flink/flink-docs-... |
<p>I have got the following template for a job:</p>
<pre><code>apiVersion: batch/v1
kind: Job
metadata:
name: "gpujob"
spec:
completions: 1
backoffLimit: 0
ttlSecondsAfterFinished: 600000
template:
metadata:
name: batch
spec:
volumes:
- name: data
persistentVolu... | <p>Yes, a failed or completed job will produce a container in <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-state-terminated" rel="nofollow noreferrer">Terminated</a> state, and therefore the resources allocated to it are freed.</p>
<p>You can easily confirm this by using the comm... |
<p>Does anyone know what am I doing wrong with my kubernetes secret yaml and why its not able to successfully create one programatically?</p>
<p>I am trying to programmatically create a secret in Kubernetes cluster with credentials to pull an image from a private registry but it is failing with the following:</p>
<pre>... | <p>I found my issue. I was trying to create the Secret object using</p>
<pre><code>Yaml.LoadAllFromString()
</code></pre>
<p>which was double encoding my <code>.dockerconfigjson</code> value. The weird part was the if the value wasnt encoded, it would fail. So I had to just manually create the Secret object instead of ... |
<p>I am facing a major problem in installing Kubeflow locally on my Windows 10 Machine.</p>
<p>Machine Specs - OS: Windows 10, RAM: 16GB</p>
<p>Approaches Tried To Install</p>
<ol>
<li><p>Microk8s - Not Successful</p>
<p>I get
Cannot Install MicroK8s properly, due to “MicroK8s not found error”, along with instance cras... | <p>The current <a href="https://www.kubeflow.org/docs/started/installing-kubeflow/" rel="nofollow noreferrer">https://www.kubeflow.org/docs/started/installing-kubeflow/</a> page suggests using a package.</p>
<p>None of the packages are expressly for Windows. The "Charmed Kubeflow" looked promising for an inst... |
<p>I have deployed the application via ArgoCD successfully, and I can access it via its ingress url</p>
<p>The applicaiton uses the image name with latest tag, such as</p>
<pre><code>image: <private_registry>/app_1_service:latest
</code></pre>
<p>I also manage other tags on same of tag <code>latest</code>, such a... | <p>You can use <a href="https://argocd-image-updater.readthedocs.io/en/stable/" rel="noreferrer">ArgoCD image-updater</a></p>
<p>But before using the the image-updater, you need to install and set appropriate permission</p>
<pre class="lang-bash prettyprint-override"><code>helm repo add argo https://argoproj.github.io/... |
<p>I am trying to install Falco on my home lab (K3s v1.23.6+k3s1 on Pop!_OS v20.04). For work I need to create a response engine, for that I have chosen FalcoSidekick and OpenFAAS - before taking this to EKS I want to test it locally.</p>
<p>I am using the standard Helm chart:</p>
<pre class="lang-bash prettyprint-over... | <p>I needed to install the kernel headers for my system, as well as increase some fx.inotify sysctl parameters.</p>
|
<p>In my firm our Kubernetes Cluster was recently updated to 1.22+ and we are using AKS. So I had to change the manifest of our ingress yaml file which was using : networking.k8s.io/v1beta1, to be compliant to the new apiVersion : networking.k8s.io/v1</p>
<p>This is the earlier manifest for the ingress file :</p>
<pre>... | <p>The API resources on the Control plane are upgreaded but the ones in helm stored manifest (within a Secret resource) are old.</p>
<p>Here is the resolution:</p>
<pre><code>$ helm plugin install https://github.com/helm/helm-mapkubeapis
$ helm mapkubeapis my-release-name --namespace ns
</code></pre>
<p>After this run... |
<p>Is it possible to manage routes in Nginx server dynamically, add and remove them, without stopping it from work, something like a circuit breaker (turn on / turn off) ? (the most closest analogy, I've found is Istio in Kubernetes, that allows to do that) (If this functionality is available within some other Software... | <p>Yes <strong>Nginx</strong> supports the circuit breaker option but it's in Nginx <strong>plus</strong> mode.</p>
<p>Ref article : <a href="https://www.nginx.com/blog/microservices-reference-architecture-nginx-circuit-breaker-pattern/" rel="nofollow noreferrer">https://www.nginx.com/blog/microservices-reference-archi... |
<p>Assuming having 2 separate k3d clusters (namely: <code>vault</code>, <code>dev</code>)
is there is a way to have a distinct URL for each cluster (preferably with https) for example: <code>vault.cluster.internal</code> and <code>dev.cluster.internal</code>
and allow apps deployed in <code>dev.cluster.internal</code> ... | <p>I found 3 solutions for the problem.</p>
<p>The first solution is to add <code>HostAliases</code> section to the <code>dev</code> cluster definition, and make it point to the external IP of the <code>vault</code> cluster loadbalancer:</p>
<p>for example:
you can run the following command on the <code>vault</code> cl... |
<p>I experimenting and learning Rancher/Kubernetes. In a very short eBook I read this.</p>
<p>"In a Kubernetes Cluster, it can be desirable to have persistent storage available for applications to use. As we do not have a Kubernetes Cloud Provider enabled in this cluster, we will be deploying the nfs-server-provis... | <p>Without seeing the full text this is only a guess, but based on that quote only using nfs-server-provider isn't providing "true" and reliable persistence.</p>
<p>nfs-server-provider launches the NFS server within the cluster, which means also its data is within the kubernetes' storage system. There's no re... |
<p>I'm trying to deploy a Flink stream processor to a Kubernetes cluster with the help of the official <a href="https://nightlies.apache.org/flink/flink-kubernetes-operator-docs-stable/" rel="nofollow noreferrer">Flink kubernetes operator</a>.
The Flink app also uses Minio as its state backend. Everything worked fine u... | <p>There is no support for this from the Kubernetes operator. In fact, this is not a limitation of the Flink Kubernetes operator, it is due to the fact of lack in support in Kubernetes native integration. There is a separate story for this in the Kubernetes operator side - <a href="https://issues.apache.org/jira/browse... |
<p>I have a standalone Kubernetes cluster:</p>
<pre><code>plane node - hostname kubernetes1 - 192.168.1.126
work node - hostname kubernetes2 - 192.168.1.138
</code></pre>
<p>I deployed this private repository:</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
name: pv1
spec:
capacity:
storage: 5Gi ... | <p>Looks like you don't have an ingress-controller of any kind and just want to access the registry directly. In that case you need to create a service of type <code>NodePort</code>.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Service
metadata:
namespace: test
name: private-repository... |
<p>I'm trying to use the AWS S3 SDK for Java to connect to a bucket from a Kubernetes pod running an Spring Boot application. In order to get external access I had to create a service as follows:</p>
<pre><code>kind: Service
apiVersion: v1
metadata:
name: s3
namespace: production
spec:
type: ExternalName
exter... | <p>I am having a similar issue. I believe AmazonS3Client API doesn't resolve the k8s service name. I had to directly use a host name instead of K8s service name.</p>
|
<p>I'm struggling to use Helm variables within my entry script for my container, when deploying to AKS. Running locally work perfectly fine, as I'm specifying them as docker -e arguement. How do I pass arguments, either specified as helm variables and/or overwrited when issuing the helm install command?</p>
<p>Entry sc... | <p>You can add and update your deployment template with</p>
<pre><code>env:
{{- range $key, $val := .Values.env }}
- name: {{ $key }}
value: {{ $val }}
{{- end }}
</code></pre>
<p>so it will add the env block into your deployment section and your <strong>shell</strong> script when will run inside the ... |
<p>I have setup VirtualService and ServiceEntry for a few services outside my kubernetes cluster.<br />
My apps can access them without any issue.<br />
I was wondering if it would be somehow possible to perform a port-forward to these services via <code>kubectl</code>, similar to how you would port-forward into a pod ... | <p>Port forwarding can be done to istio-ingressgateway service but not to virtual service. More details of service and virtual service of istio are in their <a href="https://istio.io/latest/docs/reference/config/networking/virtual-service/" rel="nofollow noreferrer">official documentation</a></p>
<p>One more option is ... |
<p>I'm trying to spread my <code>ingress-nginx-controller</code> pods such that:</p>
<ul>
<li>Each availability zone has the same # of pods (+- 1).</li>
<li>Pods prefer Nodes that currently run the least pods.</li>
</ul>
<p>Following other questions here, I have set up Pod Topology Spread Constraints in my pod deployme... | <p>In Kubernetes 1.25, you can now use the alpha feature <code>matchLabelKeys</code> to resolve this issue. Because there is an automatically generated <code>pod-template-hash</code> for each version of a deployment added to each pod, that and your app specific label can provide the hashed value to prevent mis-scheduli... |
<p>i have a helm chart having multiple StatefulSet templates.<br />
i want one of the template to be deployed only during <code>helm install</code><br />
and it should not teminate when doing <code>helm upgrade</code>.</p>
<pre><code>{{- if .Release.IsInstall -}}
apiVersion: apps/v1
kind: StatefulSet
metadata:
.....
..... | <p>after doing through helm documentation, it provides solution using helm hooks</p>
<pre><code>"helm.sh/hook": pre-install
"helm.sh/hook-weight": "-10"
</code></pre>
<p><a href="https://helm.sh/docs/topics/charts_hooks/#:%7E:text=Description-,pre%2Dinstall,-Executes%20after%20templates"... |
<p>I have deployed Jupyterhub on Kubernetes following this guide <a href="https://zero-to-jupyterhub.readthedocs.io/en/latest/" rel="nofollow noreferrer">link</a>, I have setup nbgrader and ngshare on jupyterhub using this guide <a href="https://nbgrader.readthedocs.io/en/stable/configuration/jupyterhub_config.html" re... | <p>An easier way to invoke terminal using jupyter-notebooks is to use magic function %%bash and use the jupyter cell as a terminal:</p>
<pre><code>%%bash
head xyz.txt
pip install keras
git add model.h5.dvc data.dvc metrics.json
git commit -m "Second model, trained with 2000 images"
</code></pre>
<p>For more i... |
<p>I am trying to configure <a href="https://github.com/bitnami-labs/sealed-secrets" rel="nofollow noreferrer">Bitnami SealedSecrets</a> with <a href="https://argoproj.github.io/cd/" rel="nofollow noreferrer">ArgoCD</a> and <a href="https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/" rel="nofollo... | <p>It is possible to ignore some differences.</p>
<p>This can be defined in the ArgoCD Application manifest:</p>
<pre><code>apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: my-app
...
spec:
project: my-project
...
syncPolicy:
...
syncOptions:
...
- RespectIgnoreDifferences=true... |
<p>I have kubernetes clusters with prometheus and grafana for monitoring and I am trying to build a dashboard panel that would display the number of pods that have been restarted in the period I am looking at.</p>
<p>Atm I have this query that fills a vector with 1 if the pod's creation time is in the range (meaning i... | <p>To display the Pod Restarts we have different Prometheus metrics</p>
<p><code>kube_pod_container_status_restarts_total</code>. This is the counter metrics and this will record the container restarts.</p>
<p>To calculate the restarts:</p>
<ul>
<li>If you want to see all pods then,
<code>sum(increase(kube_pod_containe... |
<p>I want to trigger remote Jenkins job from my container(k8s).</p>
<p>Currently, I'm using:</p>
<p><code>curl -k -X POST -u $USER:$JENKINS_TOKEN "${JENKINS_URL}/job/{$JOB_NAME}/buildWithParameters?token=12345"</code></p>
<p>But this information($USER,$JENKINS_TOKEN) is displayed in ArgoUI, is there any secur... | <p>You can try one of the following.</p>
<p>Save the password in a file called <code>password-file</code> and read from that</p>
<pre><code>curl -k -X POST -u $USER:$(cat .password-file)"${JENKINS_URL}/job/{$JOB_NAME}/buildWithParameters?token=12345"
</code></pre>
<p>Accept credentials from the STDIN.</p>
<pr... |
<p>I am trying to write a cron job which takes an excel file from SFTP server and upload the data on mongo DB.</p>
<p>Now, suppose there are errors in cronjob like sftp connection failure due to some credentials issue or path from where the file needs to be picked up from is not present, then the control is going insid... | <p>You must ensure that the process exits with a non-zero exit code. Your <code>catch</code> blocks could use a <code>process.exit(1)</code> and <code>throw Error</code>.</p>
|
<p>I'm using minikube on WSL2.
I deployed a simple flask app image and write a LoadBalancer to expose the service.</p>
<p>My question is, how do I modify service manifest to get the same result as expose?</p>
<p>Below are more details.</p>
<p>flask app deployment yaml.</p>
<p>rss.yaml</p>
<pre><code>apiVersion: apps/v1... | <p>Your <code>LoadBalancer</code> type service is showing <code>Pending</code> as status because it is waiting for you to provision an external Load Balancer like AWS's Elastic Load Balancer or GCP's Load Balancer. LoadBalancer type services are usually used together with managed Kubernetes service e.g EKS, GKE etc.</p... |
<p>I have been able to generate the following output with plugin of kubectl in following way :</p>
<pre><code>./kubectl get namespaces | awk '{ print $1 }' | while read x; do ./kubectl resource-capacity --sort cpu.util --namespace $x --util --pod-count --pods; done
Error getting Pod Metrics: pods.metrics.k8s.io is for... | <p>The answer is adjusted as per the comments by OP.</p>
<p>The command to print the pod resources by node:</p>
<pre><code>kubectl describe node | perl -0777 -wnE '@pods = /Name:\s+([^ ]+)\n.*?Non-terminated\s+Pods:\s+\([0-9]+\s+in\s+total\)\n(.*?)\nAllocated resources:/gs;say for @pods'
</code></pre>
<p>1st step, Wri... |
<p>So i have this project that i already deployed in GKE and i am trying to make the CI/CD from github action. So i added the workflow file which contains</p>
<pre><code>name: Build and Deploy to GKE
on:
push:
branches:
- main
env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}
GKE_CLUSTER: ${{ secrets.GKE_CL... | <p>As the title of this question is more Kubernetes related than GCP related, I will answer since I had this same problem using AWS EKS.</p>
<p><code>How to fix metadata.resourceVersion: Invalid value: 0x0: must be specified for an update</code> is an error that may appear when using <code>kubectl apply</code></p>
<p><... |
<p>I have a deployment with a pod that has his configuration defined through a lot of environment variables. Now I want to add a sidecar container that requires exactly the same environment variables as the already defined container. Instead of just copy/pasting all the variables I'd like to stick to the DRY principle.... | <p>You can create a <a href="https://docs.helm.sh/docs/chart_template_guide/named_templates/" rel="nofollow noreferrer">named template</a> to do this. If you're only going to be using this template within a single Kubernetes object (multiple containers within the same Deployment) you could put it in that object's <cod... |
<p>k8s <a href="https://kubernetes.io/docs/concepts/containers/images/" rel="nofollow noreferrer">documentation</a> about <code>IfNotPresent</code> image pull policy states:</p>
<blockquote>
<p>the image is pulled only if it is not already present locally.</p>
</blockquote>
<p>I'm not sure what "locally" actu... | <p>it simply mean the : <strong>locally on worker nodes on which POD runs</strong></p>
<blockquote>
<p>If I have 2 pods with same images but different image pull policies,
does pulling the image for the 1st pod affects another pod?</p>
</blockquote>
<p>If it's the same image there won't be any issue in running either i... |
<p>The <a href="https://kubernetes.io/docs/reference/using-api/server-side-apply/" rel="nofollow noreferrer">page</a> on server-side apply in the Kubernetes docs suggests that it can be enabled or disabled (e.g., the docs say, "If you have Server Side Apply enabled ...").</p>
<p>I have a GKE cluster and I wou... | <p>You can try creating any object like <strong>namespace</strong> or so and try checking the YAML output using the command you will get an idea if SSA is enabled or not.</p>
<p><strong>Command</strong> :</p>
<p><code>kubectl create ns test-ssa</code></p>
<p>Get the created namespace</p>
<pre><code>kubectl get ns test-... |
<p>I am looking for an open-source WAF solution that could be deployed in Kubernetes. I've looked a ModSecurity but it seems like good rules cost money and it also requires lots of tuning.</p>
| <blockquote>
<p>it seems like good rules cost money and it also requires lots of tuning</p>
</blockquote>
<p>How can you define the "good rules"?</p>
<p>There are "good rules" in my opinion, called <a href="https://coreruleset.org" rel="noreferrer">CoreRuleSet</a>, it's absolutely free. And I don't ... |
<p><strong>The application:</strong><br />
I'm building a statistics app which allows users to login, upload data files, and do some statistics calculations with the data. The plots generated would be displayed to them on the browser and the plots would need to be saved to disk too (to avoid having to re-generate them ... | <p>If at all possible, you should store all of the data in a database. If neither the input files nor the rendered charts will be too large (their size can be reasonably measured in kilobytes, say) then you could store it in a binary-object column in the database. If you can do this, then your application will not ne... |
<p>There is this example project on <a href="https://github.com/asynkron/protoactor-grains-tutorial" rel="nofollow noreferrer">GitHub</a> that I'm trying to deploy on local Kubernetes cluster (k3d). The developers of Proto.Actor described the k8s deployment pretty much here in the <a href="https://proto.actor/docs/clus... | <p>It doesn't matter where you push your images to, as long as it's a valid implementation of the <a href="https://github.com/opencontainers/distribution-spec" rel="nofollow noreferrer">OCI Distribution Spec</a> (a valid container registry). All the registry options you've listed would work, just pick the one that fits... |
<p>I am trying to apply kubernetes code that was given for me. I am getting an error:</p>
<pre><code>Error from server (BadRequest): error when creating "infra/ecr-creds/rendered.yml": Secret in version "v1" cannot be handled as a Secret: illegal base64 data at input byte 0
</code></pre>
<p>From wha... | <p>You should use <code>stringData</code>:</p>
<pre><code>apiVersion: v1
kind: Secret
metadata:
name: aws-ecr-creds-secret
namespace: whatever
labels:
app.kubernetes.io/name: aws-multi-ecr-credentials
helm.sh/chart: aws-multi-ecr-credentials-1.4.3
app.kubernetes.io/instance: aws-ecr-creds-novisign
... |
<p>I have a cluster with many namespaces.
I'm trying to log data from a specific namespace in my Openshift cluster but it is logging the data from all the namespaces. I tried to follow the documentation of the Openshift regarding logging, but there is no mention of scoping the log data.</p>
<p>I followed this documenta... | <p>As Cluster Logging on OpenShift, you can transfer logs in namespaces or Pods matched label you select.</p>
<p>The sample CR like <code>Forward logs in my-project namespace to Elasticserach which is deployed by Cluster Logging</code> could be as follows:</p>
<pre><code>apiVersion: "logging.openshift.io/v1"
... |
<h2>Summary:</h2>
<p>I'm trying to use KNative eventing to expose a simple web application via a Kafka topic. The server should be able to handle multiple requests concurrently, but, unfortunately, it seems to handle them sequentially when I send them via Kafka. When making simple HTTP requests directly to the service,... | <p>Kafka provides ordering within a partition (the implementation is a distributed log). You may need to change the number of partitions on your Kafka topic to achieve higher parallelism; you may be able to also use the <a href="https://github.com/knative-sandbox/eventing-kafka/blob/main/pkg/apis/sources/v1beta1/kafka_... |
<p>I have started to learn GitOps ArgoCD. I have one basic doubt. I am unable to test ArgoCD because I do not have any Cluster. It will be so kind of you if you can clear my doubts.</p>
<ol>
<li>As an example currently I am running my deployment using <code>test:1</code> docker image. Then using Jenkins I upload <code>... | <p>If you need automation, you can consider <a href="https://argocd-image-updater.readthedocs.io/en/latest/" rel="nofollow noreferrer"><strong>Argo CD Image Updater</strong></a>, which does include in its <a href="https://argocd-image-updater.readthedocs.io/en/latest/basics/update-strategies/" rel="nofollow noreferrer"... |
<p>I am new to the storage concepts in Kubernetes.
I need to have some common persistent storage in the Kubernetes cluster but also to be able to write to it from outside of the cluster on-prem environment..</p>
<p>So my question is, Can we have some persistent storage (of a file system) in Kubernetes cluster that can ... | <p>Having a filesystem shared inside the cluster between multiple pods is doable with any persistent volume marked as ReadWriteMany, like a <a href="https://kubernetes.io/docs/concepts/storage/volumes/#nfs" rel="nofollow noreferrer">NFS</a>. However for the NFS you will need to have a Kubernetes "addon" that ... |
<p>Recently we faced some issue in our AKS cluster that the nodes memory were simply got increased as the pods memory request was high ( request-2Gi, memory 2Gi) which increased the node count. So inorder to reduce the node counts we reduced the request memory to 256MI and limit to same value (2GB). After this we notic... | <p>Here are lots of talks about <strong>removing CPU limits</strong> on K8S</p>
<ul>
<li><a href="https://home.robusta.dev/blog/stop-using-cpu-limits/" rel="noreferrer">For the love of god, stop using CPU limits on Kubernetes </a></li>
<li><a href="https://community.ibm.com/community/user/aiops/blogs/dina-henderson/202... |
<p>I'm using Terraform for deploying <strong>cert-manager</strong> and <strong>ambassador</strong>.</p>
<p>Trying to understand how to use <strong>nodeSelector</strong> in terraform deployment and assign the helm chart I'm using for both services to a specific group node I have (using a label with key and value to assi... | <p>If Your nodeSelector location in values.yaml looks like this:</p>
<pre><code>controller:
nodeSelector: {}
</code></pre>
<p>You should be setting it up this way:</p>
<pre><code>set {
name = "controller.nodeSelector.dedicated"
value = "workloads"
}
</code></pre>
<p>Where <strong>dedicat... |
<p>I am new in Kubernetes and stuck on the issue. I was trying to renew letsencrypt SSL certificate. But when I try to get certificate by running following command</p>
<pre><code>kubectl get certificate
</code></pre>
<p>System throwing this exception</p>
<pre><code>Error from server: conversion webhook for cert-manager... | <p>if you are using webhook, check if you have injected the ca, if not you could do it using:</p>
<pre><code>apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
...
annotations:
cert-manager.io/inject-ca-from: "<namespace>/<certificate_name>"
</code></pre... |
<p>I'm running a mongoDB (5.0.12) instance as a kubernetes pod. Suddenly the pod is failing and I need some help to understand the logs:</p>
<pre><code>{"t":{"$date":"2022-09-13T18:39:51.104+00:00"},"s":"E", "c":"STORAGE", "id":22435, &... | <p>You can try checking the permissions for that file before execution:</p>
<pre><code>ls -l
</code></pre>
<p>then using <strong>chmod</strong> you can try changing the permission and then try executing it.</p>
<p>OR</p>
<p>You can refer here, this might help you:</p>
<blockquote>
<p><a href="https://kubernetes.io/docs... |
<p>I cannot really understand the purpose and usage of topologyKey in pod affinity. The documentations says:</p>
<blockquote>
<p><strong>topologyKey</strong> is the key of node labels. If two Nodes are labelled with this key and have identical values for that label, the scheduler treats both Nodes as being in the same ... | <p>Required as part of a <strong>affinity.podAffinity</strong> or <strong>affinity.podAntiAffinity</strong> <em>spec</em> section, the <strong>topologyKey</strong> field is used by the scheduler to determine the domain for Pod placement.</p>
<p>The topologyKey <em>domain</em> is used to determine relative placement of ... |
<p>We have upgraded our AKS to 1.24.3, and since we have, we are having an issue with containers refusing connection.</p>
<p>There have been no changes to the deployed microservices as part of the AKS upgrade, and the issue is occurring at random intervals.</p>
<p>From what I can see the container is returning the erro... | <p>I hit similar issue upgrading from 1.23.5 to 1.24.3, issue was configuration mis-match with kubernetes load balancer health probe path and ingress-nginx probe endpoints.</p>
<p>Added this annotation to my ingress-nginx helm install command corrected my problem: --set controller.service.annotations."service.beta... |
<p>I'm trying to get an ingress controller working in Minikube and am following the steps in the K8s documentation <a href="https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/" rel="noreferrer">here</a>, but am seeing a different result in that the IP address for the ingress controller is diff... | <p>Here’s what worked for me:</p>
<ol>
<li><p>minikube start</p>
</li>
<li><p>minikube addons enable ingress</p>
</li>
<li><p>minikube addons enable ingress-dns</p>
</li>
<li><p>Wait until you see the ingress-nginx-controller-XXXX is up and running using <code>Kubectl get pods -n ingress-nginx</code></p>
</li>
<li><p>C... |
<p>I have <code>Chart.yaml</code> as:</p>
<pre><code>dependencies:
- name: mysql
version: "5.0.9"
repository: "https://charts.bitnami.com/bitnami"
alias: a
- name: mysql
version: "5.0.9"
repository: "https://charts.bitnami.com/bitnami"
... | <p>You could use yaml anchors and aliases.</p>
<pre><code> mysql: &mysql
somename: Overriden
somename2: NotOverriden
a:
<<: *mysql
somename: A
b:
<<: *mysql
somename: B
</code></pre>
|
<p>I know, for example, that you can get the lastUpdateTime of a Deployment with <strong>kubectl</strong>:</p>
<pre><code>kubectl get deploy <deployment-name> -o jsonpath={.status.conditions[1].lastUpdateTime}
</code></pre>
<p>Or via <strong>client-go</strong>:</p>
<pre><code>func deploymentCheck(namespace string... | <p>I noticed that the only things that change after someone edits a given resource are the resource's lastAppliedConfiguration, Generation and ObservedGeneration. So, I stored them in lists:</p>
<pre><code> for _, deployment := range deployments.Items {
deploymentNames = append(deploymentNames, deployment.Na... |
<p>I need to read file from smb:// share within Knative function. Is it possible?</p>
<p>I tried to mount share with Volumes (PersistentVolume/PersistentVolumeClaim). But seems Knative services don't support Volume functionality (supported volume types <a href="https://github.com/knative/docs/blob/51b878d8ebb494e48cfa5... | <p>There is a <a href="https://github.com/knative/serving/blob/main/config/core/configmaps/features.yaml#L173" rel="nofollow noreferrer">feature flag <code>kubernetes.podspec-persistent-volume-claim</code> (and <code>kubernetes.podspec-persistent-volume-write</code>)</a> which an administrator can use to enable mountin... |
<p>**Unable to connect to the server: getting credentials: decoding stdout: no kind "ExecCredential" is registered for version "client.authentication.k8s.io/v1alpha1" in scheme "pkg/client/auth/exec/exec.go:62"
**</p>
<pre><code>2022-09-16 16:35:00 [ℹ] eksctl version 0.111.0
2022-09-16 16... | <p>You need to update your AWS CLI to >2.7.25 or the latest (recommended), ensure your CLI is pointing to the right region, then try <code>eksctl utils write-kubeconfig --cluster=<name></code>. Open the kubeconfig file and check <code>client.authentication.k8s.io/v1alpha1</code> has changed to <code>client.aut... |
<p>I manage my DNS using GoDaddy and I was hoping to have Lets Encrypt certificates generated for my kubernetes deployment. However, trying to generate a certificate generates the error</p>
<pre><code>I0728 17:31:12.123952 1 dns.go:88] cert-manager/controller/challenges/Present "msg"="presenting DN... | <p>I also encountered this issue. I got it fixed by adding a missing <code>ClusterRole</code> and <code>ClusterRolebinding</code>. This is the manifest that fixed the issue for me.</p>
<pre class="lang-yaml prettyprint-override"><code>---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: dns-... |
<p>I use this manifest configuration to deploy a registry into 3 mode Kubernetes cluster:</p>
<pre><code>apiVersion: v1
kind: PersistentVolume
metadata:
name: pv1
namespace: registry-space
spec:
capacity:
storage: 5Gi # specify your own size
volumeMode: Filesystem
persistentVolumeReclaimPolicy: Retain
l... | <p>Lets try the following(disregard the paths you currently have and use the ones in the example, (then you can change it), we can adapt it to your needs once dynamic provisioning is working, at the very bottom theres mysql image as an example, use busybox or leave it as it is to get a better understanding:</p>
<ol>
<l... |
<p>I want to run patching of statefulsets for a specific use case from a Pod via a cronjob. To do so I created the following plan with a custom service account, role and rolebinding to permit the Pod access to the apps api group with the patch verb but I keep running into the following error:</p>
<pre><code>Error from ... | <p>Stateful sets need two verbs to apply a patch :
GET and PATCH. PATCH alone wont work</p>
|
<p>I am looking to create a CRD, which has some of the Specs of an existing k8s object. Is there a way of importing the schema and validation checks of the existing spec instead of manually repeating it again?</p>
<p>For reference, I am registering the CRD with the API like this - <a href="https://gist.github.com/tallc... | <p>CRD are managed by a controller specific to that CRD.</p>
<p>Validation of an object concerning the CRD is achieved through a service that takes a call from the API, in this case validation would work along these lines, <a href="https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers... |
<p>I'm trying to start minikube but it gives me this error</p>
<pre><code>this vM is having trouble accessing https://k8s.gcr.io
To pull new external images, you may need to configure a proxy:
https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
</code></pre>
<p>I tried docker and HyperV and VirtualBox same er... | <h3>Option 1:</h3>
<ul>
<li>Try to set up a proxy</li>
<li><a href="https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/" rel="nofollow noreferrer">https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/</a></li>
</ul>
<pre class="lang-bash prettyprint-override"><code>### Linux
# Set your proxy
export HTTP_PROX... |
<p>I would like to migrate an application from one GKE cluster to another, and I'm wondering how to accomplish this while avoiding any downtime for this process.</p>
<p>The application is an HTTP web backend.</p>
<p>Usually how I'd usually handle this in a non GCP/K8S context is have a load balancer in front of the app... | <p><strong>Few pain points you'll run into:</strong></p>
<ol>
<li>As someone used to DIY Kubernetes I hate GKE's managed Ingress Certs, because they make it very hard to pre-provision HTTPS certs in advance on the new cluster. (GKE's defacto method of provisioning HTTPS certs is to update DNS to point to the LB, and th... |
<p>I'm using <a href="https://external-secrets.io/v0.6.0-rc1/" rel="nofollow noreferrer">External Secrets</a> to sync my secrets from azure. And now I need a programmatic way to trigger the sync. With <code>kubectl</code> the command is</p>
<pre class="lang-bash prettyprint-override"><code>kubectl annotate es my-es f... | <pre class="lang-java prettyprint-override"><code>const options = {
"headers": {
"Content-type": k8s.PatchUtils.PATCH_FORMAT_JSON_PATCH
}
};
</code></pre>
<p>is still required.</p>
|
<p>I'm trying to get KNative to be able to create services on my Multipass VM with MacOS as the host OS and I am using MicroK8S. I have DNS enabled and I am using metallb as my ingress controller. I have also changed Multipass to use hyperkit instead of VirtualBox. I don't know what's not been configured or missconfigu... | <p>Knative uses validating admission webhooks to ensure that the resources in the cluster are valid. It seems like the Knative webhooks are not running on your cluster, but the validatingwebhookconfiguration has been created, as has the service in front of the webhook (the IP in the error message is a ClusterIP of a Ku... |
<p>I'm trying to understand what happens when a container is configured with a CPU request and without a limit, and it tries to use more CPU than requested while the node is fully utilized, but there is another node with available resources.</p>
<p>Will k8s keep the container throttled in its current node or will it be... | <p><strong>Q1) what happens when a container is configured with a CPU request and without a limit ?</strong></p>
<p><strong>ANS:</strong></p>
<p><strong>If you do not specify a CPU limit</strong></p>
<p>If you do not specify a CPU limit for a Container, then one of these situations applies:</p>
<p>The Container has no ... |
<p>I am new to Argo and following the Quickstart templates and would like to deploy the HTTP template as a workflow.</p>
<p>I create my cluster as so:</p>
<pre class="lang-bash prettyprint-override"><code>minikube start --driver=docker --cpus='2' --memory='8g'
kubectl create ns argo
kubectl apply -n argo -f https://raw... | <p>Argo Workflows does not yet work with Kubernetes v1.24+. See this issue:</p>
<p><a href="https://github.com/argoproj/argo-workflows/issues/8320" rel="nofollow noreferrer">https://github.com/argoproj/argo-workflows/issues/8320</a></p>
|
<p>I have a schedule:
<code>schedule: "0 10,14,18 * * *"</code>, I'd like to run this job in 10:00 am, 2:00pm, 6:00pm.</p>
<p>Since I located at UTC+8 timezone, this cronjob looks like not run as I expected.</p>
<p>Anyway to add a config for timezone?</p>
| <p>In Kubernetes v1.25, you can enable the <code>CronJobTimeZone</code> feature gate and set timezone by setting <code>spec.timeZone</code> to a valid time zone name.</p>
<p>For example, setting <code>spec.timeZone: "Australia/Melbourne"</code> makes Kubernetes to interpret the schedule relative to the <code>... |
<p>Is it possible to expose TCP Openshift Service using routes with SNI?
I am trying to have a TCP service in Openshift be exposed to outside the cluster with SNI. This article goes through some general idea of it. <a href="https://blog.zhaw.ch/icclab/openshift-custom-router-with-tcpsni-support/" rel="nofollow noreferr... | <p>NodePort Service is the way when an application needs to expose TCP protocol outside OpenShift cluster.</p>
<p>Here is the limitation of the Ingress Controller (Router) *1</p>
<blockquote>
<p>This is limited to HTTP, HTTPS using SNI, and TLS using SNI, which is
sufficient for web applications and services that work ... |
<p>I'm trying to configure RBAC for argocd, I saw a lot of examples like this one below:</p>
<pre><code>apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-rbac-cm
namespace: argocd
data:
policy.default: role:readonly
policy.csv: |
p, role:org-admin, applications, *, */*, allow
p, role:org-admin, clus... | <p>I would guess p=Permission, g=Group.
p is what permission the role have.
g is which role this group have</p>
|
<p>I launched an EKS cluster using terraform <a href="https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest" rel="nofollow noreferrer">module</a></p>
<p>My template looks something like this:</p>
<pre><code>module "eks" {
source = "terraform-aws-modules/eks/aws"
version... | <p>Terraform needs to connect the the created cluster and use the cluster credentials to create the <code>aws-auth</code> configmap. Add this to the file that is creating the EKS cluster.</p>
<pre><code>data "aws_eks_cluster" "default" {
name = module.eks.cluster_id
}
data "aws_eks_cluster_a... |
<p>I need to install this NGINX Ingress Controller Git release <a href="https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.22.0" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.22.0</a> in my Kubernetes cluster. Can anyone share the steps on how to do it?</p>
<p>... | <p>I understand you want to install nginx-ingress controller using(manage using) helm, you can use the link for the same, below command.
<a href="https://kubernetes.github.io/ingress-nginx/deploy/" rel="nofollow noreferrer">https://kubernetes.github.io/ingress-nginx/deploy/</a></p>
<pre><code>helm upgrade --install ing... |
<p>I'm looking to use the Kubernetes python client to delete a deployment, but then block and wait until all of the associated pods are deleted as well. A lot of the examples I'm finding recommend using the watch function something like follows.</p>
<pre><code>try:
# try to delete if exists
AppsV1Api(api_client... | <p>May be you can try this way and handle exceptions based your requirement</p>
<pre><code> def delete_deployment():
""" Delete deployment """
while True:
try:
deployment = api_client.delete_namespaced_deployment(
name=&quo... |
<p><a href="https://i.stack.imgur.com/OyFnO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OyFnO.png" alt="diagram of connections between components in a k8s cluster" /></a></p>
<p>One Kubernetes cluster contains several components, for example, kubelet, etcd, api-server, etc.</p>
<p>We need to set ... | <p>Trying to answer your multiple questions from my view:</p>
<blockquote>
<p>But I don't understand what problem these Kubernetes certificates try to solve.</p>
</blockquote>
<ol>
<li><p>According to <a href="https://en.wikipedia.org/wiki/Zero_trust_security_model" rel="nofollow noreferrer">Zero trust security model</... |
<p>I need to install this NGINX Ingress Controller Git release <a href="https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.22.0" rel="nofollow noreferrer">https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.22.0</a> in my Kubernetes cluster. Can anyone share the steps on how to do it?</p>
<p>... | <p>You can display all available helm chart versions using:</p>
<pre class="lang-bash prettyprint-override"><code>helm search repo ingress-nginx --versions
</code></pre>
<pre class="lang-bash prettyprint-override"><code>NAME CHART VERSION APP VERSION DESCRIPTION
ingress-nginx/ingress-nginx 4.2.... |
<p>Is there any standard to deploy flask app with gunicorn and nginx on kubernetes cluster
because I am trying to it by on dockerfile like below:</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-html lang-html pret... | <blockquote>
<p>Is the solution is to run two containers for each of gunicorn and nginx inside one pod of kubernetes?</p>
</blockquote>
<p>Yes. In Kubernetes or when simply running Docker on your local machine, it is always better to compose multiple containers rather than trying to stuff everything into a single conta... |
<p>I have already tried finding resources and articles online for how to create alerts using Grafana 8 UI about the CPU and/or memory usage of my kubernetes cluster pods, but I couldn't find anything, neither on youtube, google, discord, stackoverflow nor reddit.</p>
<p>Does anyone know any guide on how to do that?</p>... | <p>You can try this query for creating an alert if the CPU or Memory usage is above threshold (let say 85%).</p>
<p><code>sum(rate(container_cpu_usage_seconds_total{namespace="$namespace", pod="$pod", container!="POD", container!="", pod!=""}[1m])) by (pod) / sum(kube_p... |
<p>I'm using the <code>kubectl rollout</code> command to update my deployment. But since my project is a NodeJS Project. The <code>npm run start</code> will take some take(a few seconds before the application is actually running.) But Kubernetes will drop the old pods immediately after the <code>npm run start</code> is... | <p>Use a startup probe on your container. <a href="https://docs.openshift.com/container-platform/4.11/applications/application-health.html" rel="nofollow noreferrer">https://docs.openshift.com/container-platform/4.11/applications/application-health.html</a> . Pods don't count as "ready" until all of their con... |
<p>I am using k8 to host my grpc service.</p>
<p>Sometimes, I am getting the following error (few milliseconds into my request):</p>
<pre><code>rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: read tcp <ipaddr>:52220-><internal ip addr&... | <p>This happened because on server shutdown, it sends an initial GOAWAY to support graceful shutdown. This means your server shut down.</p>
|
<p>I read through the karpenter document at <a href="https://karpenter.sh/v0.16.1/getting-started/getting-started-with-terraform/#install-karpenter-helm-chart" rel="nofollow noreferrer">https://karpenter.sh/v0.16.1/getting-started/getting-started-with-terraform/#install-karpenter-helm-chart</a>. I followed instructions... | <p>I belive this is due to the pod topology defined in the Karpenter deployment here:</p>
<p><a href="https://github.com/aws/karpenter/blob/main/charts/karpenter/values.yaml#L73-L77" rel="nofollow noreferrer">https://github.com/aws/karpenter/blob/main/charts/karpenter/values.yaml#L73-L77</a></p>
<p>, you can read furth... |
<p>Occasionally, Pgadmin gives me the 500 error in a browser. After reloading the page, the issue disappears for a while and then comes back again. Here's the log I see while getting the error:</p>
<pre><code> [2022-01-21 14:35:21 +0000] [93] [ERROR] Error handling request /authenticate/login
Traceback (most recent ... | <p>Please try setting
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION = False in configuration file according to your operating system as mentioned <a href="https://www.pgadmin.org/docs/pgadmin4/6.13/config_py.html" rel="nofollow noreferrer">here</a>.</p>
|
<p>I am trying to enable <code>https</code> using the following documentation <strong>[Emissary ingress 2.2.2]</strong>
<a href="https://www.getambassador.io/docs/emissary/latest/howtos/tls-termination/" rel="nofollow noreferrer">https://www.getambassador.io/docs/emissary/latest/howtos/tls-termination/</a></p>
<p>I fol... | <p>I've been struggling with exactly the same problem for a few evenings, - been following the official docs, but got stuck at getting "wrong version number" error when trying to access k8s dashboard over HTTPS with curl,</p>
<p>what solve the problem for me, was an explicit setting of tls-certificate for a h... |
<p>I just started to use Rancher and request to correct me for any wrong terminology.</p>
<p>Earlier I was using minikube on Macbook which provide SSH easily using <code>minikube ssh</code> for troubleshooting. As I am newbie to Rancher Desktop and wanted to do SSH on Rancher Desktop node similar to minikube.</p>
<p>I ... | <p>On recent versions (1.3 on) you can use the <code>rdctl</code> utility, which ships with Rancher Desktop, and run <code>rdctl shell COMMAND</code> or <code>rdctl shell</code> to ssh into the VM.</p>
|
<p>I have a application running react as front end and node as back end code. In react public folder, we have a meta.json which has the version number, every time we run npm run build, it will update version number in that file. we are using this method to make sure the website always displays the new release version, ... | <p>Instead of adding the <strong>Git</strong> into the <strong>Docker</strong>, it will add extra layers to the docker image.</p>
<p>Once your image build is <strong>completed</strong> after that what you can do is something like copy the <strong>JSON</strong> outside of the docker image and push it from the <strong>CI... |
<p>I need to build go project using google Ko after checking out from git and then push the image to private artifactory which takes credentials. How to define the steps for the above in cloudbuild.yaml? Steps where it takes Source path and also where it takes private repository path. How to give the credentials of art... | <p>Error you are getting is due the <code>failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "bash"</code></p>
<blockquote>
<p>By default, the ko command uses a secure and lean base image from the
Distroless collection of images (the gcr.io/dist... |
<p>I use ingress-nginx with Helm Chart. I used to have the problem, that when I would upload a file (50MB) that I would get the error 413 Request Entity Too Large nginx.</p>
<p>So I changed the proxy-body-size value in my values.yaml file to 150m, so I should now be able to upload my file.
But now I get the error "... | <p>So it turns out the Application wich had the error, had another reverse Proxy infront of it (wich uses Lua and Openresty for oauth registration).
The Proxy-body-size attribute needed to be raised there to. After that the File upload worked</p>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.