Question stringlengths 65 39.6k | QuestionAuthor stringlengths 3 30 ⌀ | Answer stringlengths 38 29.1k | AnswerAuthor stringlengths 3 30 ⌀ |
|---|---|---|---|
<p>I created a helm chart repo via Github Action <a href="https://github.com/helm/chart-releaser-action" rel="nofollow noreferrer">helm/chart-releaser-action</a></p>
<p>URL: <a href="https://syself.github.io/hetzner-cloud-controller-manager/index.yaml" rel="nofollow noreferrer">https://syself.github.io/hetzner-cloud-co... | guettli | <p><code>helm</code> does not show beta releases by default. If you use it like this (with <strong>--devel</strong>), it works:</p>
<pre><code>❯ helm search repo syself --devel
NAME CHART VERSION APP VERSION DESCRIPTION
syself-hetzn... | guettli |
<p>I am following <a href="https://istio.io/latest/docs/tasks/traffic-management/egress/egress-control/#access-an-external-https-service" rel="nofollow noreferrer">this guide</a>.</p>
<p>Ingress requests are getting logged. Egress traffic control is working as expected, except I am unable to log egress HTTP requests. W... | Jonas | <p>For ingress traffic logging I am using <code>EnvoyFilter</code> to set log format and it is working without any additional configuration. In the egress case, I had to set <code>accessLogFile: /dev/stdout</code>.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: install.istio.io/v1alpha1
kind: IstioOp... | Jonas |
<p>I try to follow the <a href="https://github.com/reportportal/kubernetes/blob/master/reportportal/v5/README.md" rel="nofollow noreferrer">kubernetes install README of ReportPortal</a></p>
<pre><code>guettli@yoga15:~/projects/reportportal-kubernetes/reportportal$ mv v5 reportportal
guettli@yoga15:~/projects/reportpor... | guettli | <p>I found the solution:</p>
<pre><code>cd reportportal
helm dependency update
</code></pre>
| guettli |
<p>I was following Kelsey Hightower's kubernetes-the-hard-way repo and successfully created a cluster with 3 master nodes and 3 worker nodes. Here are the problems encountered when removing one of the etcd members and then adding it back, also with all the steps used:</p>
<p><strong>3 master nodes:</strong><br>
10.240... | Isaac Wong | <p>if you are re-adding the more easy solution is following</p>
<pre><code>rm -rf /var/lib/etcd/*
kubeadm join phase control-plane-join etcd --control-plane
</code></pre>
| ImranRazaKhan |
<p>This golang code works well:</p>
<pre><code> topics := &kafka.KafkaTopicList{}
d, err := clientSet.RESTClient().Get().AbsPath("/apis/kafka.strimzi.io/v1beta2/kafkatopics").DoRaw(context.TODO())
if err != nil {
panic(err.Error())
}
</code></pre>
<p>However I'd like to get the <cod... | Fabrice Jammes | <p>Try:</p>
<pre class="lang-golang prettyprint-override"><code>group := "kafka.strimzi.io"
version := "v1beta2"
plural := "kafkatopics"
namespace := "..."
d, err := clientSet.RESTClient().Get().AbsPath(
fmt.Sprintf("/apis/%s/%s/namespaces/%s/%s",
group,
... | DazWilkin |
<p>I have installed Kubernetes(1.17.3) on one server(not VM) with flannel(v0.11.0-amd64) using kubeadm. Then i installed grafana and prometheus and can access both on NodePort <code>http://<serverip>:31000</code></p>
<p>Now when i tries to access prometheus service from grafana its giving error <code>Could not r... | ImranRazaKhan | <p>To make it work without disabling firewalld i have to add below rule and everything start working with dnsnames</p>
<pre><code>firewall-cmd --add-masquerade --permanent
firewall-cmd --reload
systemctl restart firewalld
</code></pre>
<p>I got hint from below link, but will look into more details why we need it? </p... | ImranRazaKhan |
<p>I am new to docker, and as I am trying to configure an IBM integration environment using docker. I have used docker pull command to install two different images, one is the IBM Integration Bus (IIB) and the other is IBM Message Queueing (MQ). Then I ran each of the images in separate containers using docker run comm... | Abdullah Alsowaygh | <p>If you can work with the latest IIB version, now called ACE, look at these <a href="https://github.com/ot4i/ace-docker" rel="nofollow noreferrer">images</a>.</p>
| Daniel Steinmann |
<p>I'm trying to write a go template that extracts the value of the load balancer. Using <code>--go-template={{status.loadBalancer.ingress}}</code> returns <code>[map[hostname:GUID.us-west-2.elb.amazonaws.com]]%</code> When I add <code>.hostname</code> to the template I get an error saying, "can't evaluate field hostn... | Jeremy Cowan | <p>As you can see from the JSON, the ingress element is an array. You can use the <a href="https://golang.org/pkg/text/template/#hdr-Functions" rel="nofollow noreferrer">template function index</a> to grab this array element. </p>
<p>Try:</p>
<pre><code>kubectl get svc <name> -o=go-template --template='{{(index... | jaxxstorm |
<p>I entered the etcd container:</p>
<pre><code>kubectl -n kube-system exec -it etcd-k8scp -- sh
</code></pre>
<p>The I try to backup the container like explained in the <a href="https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#built-in-snapshot" rel="nofollow noreferrer">K8s docs</a></p>
<pr... | guettli | <p>I forgot to set <code>$ENDPOINT</code>.</p>
<p>If it is empty, then etcdctl gets this:</p>
<pre><code>ETCDCTL_API=3 etcdctl --endpoints snapshot save snapshotdb
</code></pre>
<p>etcdctl thinks I want to address the endpoint called "snapshot" and execute the command "save"</p>
<p>:-)</p>
| guettli |
<p>From the master node in a Kubernetes cluster, I can run <code>kubectl get nodes</code> and see the status of any individual node on the cluster, as <code>kubectl</code> can find the cluster cert for authentication. On my local workstation, assuming I have auth configured correctly, I can do the same.</p>
<p>From th... | geerlingguy | <p>There's no canonical way of doing this, one option is to use kubelet API.</p>
<p>The kubelet exposes an API which the controlplane talks to in order to make it run pods. By default, this runs on port 10250 but this is a write API and needs to be authenticated.</p>
<p>However, the kubelet also has a flag <code>--re... | jaxxstorm |
<p>Couchbase cbbackup failing from the remote server, which has full connectivity to the Couchbase running on K8s.</p>
<ul>
<li>Couchbase Server version: couchbase: community-6.0.0</li>
<li>Couchbase running on Kubernetes 1.17.</li>
</ul>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data... | SkPuthumana | <p>Unfortunately, backup from an external network is not possible with Couchbase 6.0.</p>
<p><a href="https://docs.couchbase.com/server/6.0/cli/cbbackup-tool.html#description" rel="nofollow noreferrer">https://docs.couchbase.com/server/6.0/cli/cbbackup-tool.html#description</a></p>
<blockquote>
<p>The cbbackup, cbresto... | dnault |
<p>Even though the user (not a service account) already have the Cloud SQL Client <code>roles/cloudsql.client</code> and Cloud SQL Instance User <code>roles/cloudsql.instanceUser</code>, the IAM account is added to the database instance (which is the user email), when using cloud-sql-proxy fails with</p>
<pre><code>FAT... | pocesar | <p>The proper way to do this is by providing 2 additional parameters to the <code>docker run</code> arguments:</p>
<pre class="lang-bash prettyprint-override"><code>docker run --rm --network=host gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.6.1 \
--address 0.0.0.0 \
--port 5432 \
--token=$(gcloud auth print-acce... | pocesar |
<p>Is there any tool , online or self hosted , that takes all the values in UI as input and generate the full declarative yaml for the following kubernetes objects:</p>
<ul>
<li>Deployment, with init containers and imagepullsecrets and other options</li>
<li>Service</li>
<li>ConfigMap</li>
<li>Secret</li>
<li>Daemons... | Ijaz Ahmad | <p>The closest is <code>kubectl create ....</code> and <code>kubectl run .....</code>. Run them with <code>-o yaml --dry-run > output.yaml</code>. This won't create the resource, but will write the resource description to output.yaml file.</p>
| Praveen Sripati |
<p>I have a container running nginx and it listens on port 443 of the pod id. It runs fine by itself; however, if I specify a liveness probe, then the probe will fail with</p>
<pre><code>5m54s Warning Unhealthy Pod Liveness probe failed: Get https://192.168.2.243:443/: EOF
</code></pre>
<p>... | skwokie | <p>I think the EOF is a symptom of a TLS handshake issue. I'm currently seeing the same.</p>
<p>Some versions of curl can produce a similar result. A workaround for curl seems to be to use <strong>--tls-max 1.2</strong>.</p>
<p>My current suspicion is that the client (the probe) is trying to negotiate TLS 1.3 with th... | Christian |
<p>I have configured the cluster for guestbook-go application by using EKS <a href="https://github.com/kubernetes/examples/tree/master/guestbook-go" rel="nofollow noreferrer">https://github.com/kubernetes/examples/tree/master/guestbook-go</a></p>
<p>and followed the official tutorial
<a href="https://docs.aws.amazon.c... | laimison | <p>Here are the steps at a high level to setup a fresh application with new image.</p>
<blockquote>
<ol>
<li><p>Do a git clone of the repository.</p>
</li>
<li><p>Modify the public/index.html locally.</p>
</li>
<li><p>Do a Docker build using <code>docker build ....</code></p>
</li>
<li><p>Push the image to a registry (... | Praveen Sripati |
<p>I am running a Spark Job in Kubernetes cluster using spark-submit command as below,</p>
<pre><code>bin/spark-submit \
--master k8s://https://api-server-host:443 \
--deploy-mode cluster \
--name spark-job-name \
--conf spark.kubernetes.namespace=spark \
--conf spark.kubernetes.container.image=doc... | karthikeayan | <p>In addition to @CptDolphin 's answer, be aware that Spark <em>always</em> allocates <a href="https://spark.apache.org/docs/latest/configuration.html#application-properties" rel="nofollow noreferrer"><code>spark.executor.memoryOverhead</code></a> extra memory (max of 10% of <code>spark.executor.memory</code> or 384MB... | mazaneicha |
<p>I'm fairly new to Kubernetes and having some problems understanding some things.</p>
<p>I'm setting up a cluster on Hetzner Cloud for client applications. In order to make the ingresses of the applications work, I deployed Hetzner Cloud Controller Manager. My question is, how do I expose the applications so i can ac... | DevCatOps | <p>First you create a service for your application. You use the default service type (ClusterIP).</p>
<p>Then you create an ingres-ngnix service of type load balancer.</p>
<p>And you need to create some Ingress rules to make URL paths to the service of your application.</p>
<p>And you need to set the annotation for the... | guettli |
<p>I want to get the specific value of an annotation into a kubectl custom columns field. I can get all the current annotations on a resource like so:</p>
<pre><code>kubectl get pvc -o custom-columns=NAME:.metadata.name,"ANNOTATIONS":.metadata.annotations -n monitoring
</code></pre>
<p>This returns a map:</p>
<pre><... | jaxxstorm | <p>Okay, I figured this out. It's easier than I thought.</p>
<p>Annotations is a standard JSON element when it's returned. The problem is that <code>kubectl</code>'s JSONPath parser has problems with dots in elements, so you just have to escape them. Here's an example:</p>
<pre><code>kubectl get pvc -o custom-columns... | jaxxstorm |
<p>I have spring boot with keycloak integration on kuberntes cluster. On production I certificate for SSL that is trusted for domain like "example.com". I configured my spring boot web application and keycloak to be under the same domain routing with ingress and providing SSL to reuse my certificate for the both server... | drage503 | <p>This error is because the trustore used to validate the TLS connection in your jvm doesn't trust the certificate you use for the keycloak server. Thus the request to turn the code into a token is never completed.</p>
<p>You need to <a href="https://access.redhat.com/documentation/en-us/red_hat_jboss_data_virtualiza... | Cédric Couralet |
<p>We have recently moved to micro services based architecture for our enterprise application. we are using Kubernetes cluster to host all our micro services.</p>
<p>Currently we didn't configure ELK for manage our logs, just storing application logs into azure blob storage.</p>
<p>We are facing issue, when multiple ... | pappu_kutty | <p>It should be possible to set the Pod information (including the name) as environment variables as mentioned <a href="https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/" rel="nofollow noreferrer">here</a>. In the application read the environment variable and log appr... | Praveen Sripati |
<p>I currently configured the logging_driver of deamon docker to write to journald, in order to parse them with fluentd from a kubernetes pod. On the node side, i have a rsyslog running with the following default configuration:</p>
<pre><code># Default rules for rsyslog.
#
# For more information see rsyslog... | lzecca | <p>By default, journald forwards logs to syslog.</p>
<p>You can turn it off by editing <code>/etc/systemd/journald.conf</code> and setting:</p>
<pre><code>ForwardToSyslog=no
</code></pre>
<p>Then restart the service:</p>
<pre><code>systemctl restart systemd-journald
</code></pre>
| GG. |
<p>I'm trying to deploy a Spark job on Kubernetes, using <code>kubectl apply -f <config_file.yml></code> (after building Docker image based on Dockerfile). The pod is successfuly created on K8s, then quickly stops with a Failed status. Nothing in the logs help understanding where the error comes from. Other jobs ... | Flxnt | <p>You have to review <code>conf/spark-env.(sh|cmd)</code></p>
<p>Start by configuring the logging</p>
<blockquote>
<p>Spark uses log4j for logging. You can configure it by adding a
log4j.properties file in the conf directory. One way to start is to
copy the existing log4j.properties.template located there.</p>... | Sully |
<p>I understand that helm consists of a client-side component (the <code>helm</code> CLI) and a cluster-side component (tiller). The docs say that tiller is responsible for building and managing releases. But why does this need to be done from the cluster? Why can't helm build and manage releases from the client, and t... | Alex Flint | <p>Tiller can also be run on the client side as mentioned in the Helm documentation <a href="https://docs.helm.sh/using_helm/#running-tiller-locally" rel="nofollow noreferrer">here</a>. The documentation refers to it as <code>Running Tiller Locally</code>.</p>
<p>But, as mentioned in the same documentation it's mainly... | Praveen Sripati |
<p>We have several applications in a Kubernetes cluster that use Apache Ignite. Ignite creates various thread pools that are sized as follows:</p>
<pre><code>Math.max(8, Runtime.getRuntime().availableProcessors())
</code></pre>
<p>So basically the thread pool will always have at least size 8, but could be more if the... | Mike | <p><em>tl;dr</em> The underlying issue seems to be when <code>resources.requests.cpu</code> is set exactly to <code>1000m</code>.</p>
<p>I wrote a simple Java app that dumps the available number of processors:</p>
<pre class="lang-java prettyprint-override"><code>public class CpuTest {
public static void main(Strin... | Mike |
<p>From the <a href="https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/" rel="nofollow noreferrer">official example</a> of <code>Kubernetes</code> documentation site on deploying a <code>Wordpress</code> application with mysql:</p>
<p>The service definition of <code>mysql</cod... | pkaramol | <p>According to the K8S documentation on <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/" rel="nofollow noreferrer">Labels and Selectors</a>.</p>
<blockquote>
<p>The API currently supports two types of selectors: equality-based and set-based.</p>
<p>Newer resources, such as Job, Deplo... | Praveen Sripati |
<p>I have a kubernetes cluster installed.
I want to use an external database ( out of my cluster ) for one of my microservices but this external db is set as a cluster and does not have it's own load balancer.</p>
<p>is there a way to create an internal loadbalancer service that will allow kubernetes to always direct ... | eran meiri | <p>You cannot, as far as I'm aware, have a Kubernetes service healthcheck an external service and provide loadbalancing to it.</p>
<p>The Service of type=LoadBalancer refers to cloudproviders' LoadBalancers, like ELB for AWS. This automates the process of adding NodePort services to those cloud provider LoadBalancers.... | jaxxstorm |
<p>I am trying to find a command or a sample shell snippet where I can wait until the list of Kubernetes pods is successful. I have checked the <a href="https://stackoverflow.com/questions/44686568/kubernetes-tell-when-job-is-complete">answer</a> but it was not giving any output. Can someone guide me or suggest an appr... | Auto-learner | <p>To wait until your pods are running, check for "condition=ready" and filter by app label, for example:</p>
<pre><code>$ kubectl wait --for=condition=ready pod -l app=netshoot
pod/netshoot-58785d5fc7-xt6fg condition met
</code></pre>
| Noam Manos |
<p>I want to understand better how Kubernetes works,and there are some doubts I haven't founded answer in documentation.</p>
<p>I have a simple Kubernetes Cluster, a Master, and 2 Workers.
I have created a docker image of my app which is stores in dockerhub.</p>
<p>I created a deployment_file.yaml, where I state that... | Claira | <p>Each of the minions (workers) will pull the docker image and store it locally. <code>docker image ls</code> will show the list of image on the minions.</p>
<p>To address where are the images are stored. Take a look at SO answer <a href="https://stackoverflow.com/questions/19234831/where-are-docker-images-stored-on-... | Praveen Sripati |
<p>I am trying to enable some admission controllers on EKS. How do you see the existing admission controllers and enable new ones?</p>
| simplytunde | <p>I don't believe this is possible at this time. The control plane is managed by Amazon, and it's not possible to modify it.</p>
<p>If you need a Kubernetes cluster in AWS with these kind of options, use <a href="https://github.com/kubernetes/kops" rel="noreferrer">kops</a></p>
| jaxxstorm |
<p>Any idea how to get a POD status via Kubernetes REST API for a POD with known name?
I can do it via kubectl by just typing "kubectl get pods --all-namespaces" since the output lists STATUS as a separate column but not sure which REST API to use to get the STATUS of a running pod.
Thank you</p>
| Vladimir Smogitel | <p>When not sure which REST API and the command is known, run the command as below with -v9 option. Note the kubectl supports only a subset of options in imperative way (get, delete, create etc), so it's better to get familiar with the REST API.</p>
<blockquote>
<p>kubectl -v9 get pods</p>
</blockquote>
<p>The abov... | Praveen Sripati |
<p>i have a simple automation to exec into a kubernetes pod but it always results in the below error :-</p>
<pre class="lang-shell prettyprint-override"><code>kubectl exec -it my-pod -c my-contaner -n my-namespace /bin/bash
Unable to use a TTY - input is not a terminal or the right kind of file
</code></pre>
<p>I am t... | Ashley | <p>I got same error while creating a pod during <strong><em>Jenkins</em></strong> build:</p>
<pre><code>$ oc run netshoot-pod --attach=true --restart=Never --rm -i --tty --image nicolaka/netshoot -- curl $IP
Unable to use a TTY - input is not a terminal or the right kind of file
If you don't see a command prompt, tr... | Noam Manos |
<p>We need to enable some sysctl parameters in kubernetes. This should be achievable with the below annotation in the Deployment. </p>
<pre><code>annotations:
security.alpha.kubernetes.io/unsafe-sysctls: net.ipv4.ip_local_port_range="10240 65535"
</code></pre>
<p>When doing so the container fails to start with the ... | the_frank | <p>A fix for this was merged back in May, you can see the PR here: <a href="https://github.com/kubernetes/kops/pull/5104/files" rel="nofollow noreferrer">https://github.com/kubernetes/kops/pull/5104/files</a></p>
<p>You'd enable it with:</p>
<pre><code>spec:
kubelet:
ExperimentalAllowedUnsafeSysctls:
- 'n... | jaxxstorm |
<p>While configuring Kubernetes 1.17 in CentOS 8, kubeadm gave the warning saying <code>tc</code> command not in the path.</p>
<p>tc command has been removed in CentOS 8, what is the impact for Kubernetes not having this command on the host?</p>
<pre><code> tc - show / manipulate traffic control settings
</code></pre>... | sfgroups | <p>Please use to install:</p>
<pre><code>dnf install -y iproute-tc
</code></pre>
<p><a href="https://centos.pkgs.org/8/centos-baseos-x86_64/iproute-tc-4.18.0-15.el8.x86_64.rpm.html" rel="noreferrer">https://centos.pkgs.org/8/centos-baseos-x86_64/iproute-tc-4.18.0-15.el8.x86_64.rpm.html</a></p>
| DerSkythe |
<p>When I run my Pod I get the Pod (cas-de) is invalid spec : forbidden pod updates may not change fields other than the <code>spec.containers[*].image</code>, <code>spec.initContainers[*].image</code>, <code>spec.activeDeadlineSeconds</code> or <code>spec.tolerations</code> (only additions to existing tolerations)</p... | morla | <p>YAML template is valid. Some of the fields might have been changed that are forbidden and then <code>kubectl apply ....</code> is executed.</p>
<p>Looks like more like a development. Solution is to delete the existing pod using <code>kubectl delete pod cas-de</code> command and then execute <code>kubectl apply -f f... | Praveen Sripati |
<p>Is it possible to restrict the ability of particular users to dynamically provision disks from storageclasses? Or, for example, only allowing particular namespaces to be able to use a storageclass?</p>
| dippynark | <p>Fair warning: I haven't tested this!</p>
<p>StorageClass is just an API endpoint, and RBAC works by restricting access to those endpoints, so in theory this should work just fine:</p>
<pre><code>kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: sc_access
rules:
- apiGroups: ["storage.k8s... | jaxxstorm |
<p>I have deployed the rabbitmq-ha chart to kubernetes, then used kubectl port-forwarding to access the management ui. I can log in, but I dont see any data in the ui, some tabs are showing the error:</p>
<pre><code>TypeError: Cannot read property 'name' of undefined TypeError: Cannot read property 'name' of undefined... | Eamonn McEvoy | <p>Which username are you logging in with? The helm values define application and management credentials. I had the same errors when logging in using the management user, that user only has permission for health checks etc. You need to login with the guest user</p>
<blockquote>
<h2>charts/values.yaml</h2>
<pre><co... | Craig Mellon |
<p>When I deploy resources to Kubernetes with Pulumi, if I make a mistake, Pulumi will wait for the Kubernetes resources to be healthy.</p>
<pre><code> Type Name Status Info
+ pulumi:pulum... | jaxxstorm | <p>Pulumi has special await logic on Kubernetes resources. You can read more about this <a href="https://www.pulumi.com/blog/improving-kubernetes-management-with-pulumis-await-logic/" rel="noreferrer">here</a></p>
<p>Pulumi will wait for Kubernetes resources to be "healthy". The definition of "healthy&qu... | jaxxstorm |
<p>I am implementing an ingress controller with AWS and following <a href="https://github.com/kubernetes-sigs/aws-alb-ingress-controller/blob/master/docs/walkthrough.md" rel="nofollow noreferrer">this</a> tutorial. </p>
<p>When creating an ingress as shown <a href="https://raw.githubusercontent.com/kubernetes-sigs/aws... | Débora | <p>It's not possible to use ingresses like this, ingresses expect a DNS name as they need to be able to route traffic.</p>
<p>You can get around this by simply editing your hosts file for a bit of a hack:</p>
<pre><code>my_fake_dns <ip_of_alb>
</code></pre>
<p>You might want to try using a <a href="https://kub... | jaxxstorm |
<p>I am creating a two node Kubernetes cluster (1 master and 2 slave nodes) which will host Netflix eureka. Microservices would be created for applications which would register themselves on the Eureka server and would find other microservices to communicate from the service registry of Eureka.I want a scenario such th... | Aditya Datta | <blockquote>
<p>I want a scenario such that if any node fails, then how can we achieve high availability in this </p>
</blockquote>
<p>Creating a Pod directly is not a recommended approach. Lets say that the node on which the Pod is running crashes, then the Pod is not rescheduled and the service is not accessible.<... | Praveen Sripati |
<p>When using Amazon's K8s offering, the <strong>EKS</strong> service, at some point you need to connect the Kubernetes API and configuration to the infrastructure established within AWS. Especially we need a <em>kubeconfig</em> with proper credentials and URLs to connect to the k8s control plane provided by EKS.</p>
... | Ichthyo | <p>There isn't a method function to do this, but you can build the configuration file yourself like this:</p>
<pre><code># Set up the client
s = boto3.Session(region_name=region)
eks = s.client("eks")
# get cluster details
cluster = eks.describe_cluster(name=cluster_name)
cluster_cert = cluster["cluster"]["certificat... | jaxxstorm |
<p>I try to setup a haproxy'd multi-master node setup for Kubernetes, as described in [<a href="https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/" rel="nofollow noreferrer">1</a>]. My network configurations are:</p>
<ul>
<li>haproxy = 192.168.1.213</li>
<li>master0|1|2 = 192.168.... | Robert Heine | <p>While not being able to find a decent solution and created an issue in the original "kubeadm" project at github, see here: <a href="https://github.com/kubernetes/kubeadm/issues/1930" rel="nofollow noreferrer">https://github.com/kubernetes/kubeadm/issues/1930</a> . </p>
<p>Since the "triage" suggested in the issue ... | Robert Heine |
<p>First of all, I'd like to say that I'm new to Kubernetes, so forgive me if what I want to do is a bad idea :)</p>
<p>Here's my context :
I've got a very large application which is composed of lots of micro-services according to their domains :</p>
<pre><code>Domain 1
domain1-microservice1-app expose port 8080
... | Julien O | <p>It's subjective.</p>
<p>I would go with Approach 1 to keep the Service specifications simple. It will also be possible to have different Pods for different Services. With the Approach 2, the same set of Pods (based on the selector) should provide all the Services for a particular domain. It would be not possible to... | Praveen Sripati |
<p>in kubernetes cluster about 40 pods per one environment and five dev/test/prod environment. So totaly about 200 pods. And I have more than hunderds of thousands DNS request on our Domain controllers(outside of kubernetes) to external DNS FQDNs. Do you have any best practice how to set up some DNS cache or something... | Bendik | <p>The default Kubernetes internal DNS doesn't support this, however you can <a href="https://kubernetes.io/docs/tasks/administer-cluster/coredns/" rel="nofollow noreferrer">switch to CoreDNS</a> as the provider, which provides you a lot more flexibility.</p>
<p>You can for example use the CoreDNS cache plugin: <a hre... | jaxxstorm |
<p>I have the following CSR object in Kubernetes:</p>
<pre><code>$ kubectl get csr
NAME AGE REQUESTOR CONDITION
test-certificate-0.my-namespace 53m system:serviceaccount:my-namespace:some-user Pending
</code></pre>
<p>And ... | licorna | <p>It's got a weird name, but it's in the <a href="https://github.com/kubernetes-client/python/blob/master/kubernetes/docs/CertificatesV1beta1Api.md#replace_certificate_signing_request_approval" rel="nofollow noreferrer">docs</a> for the python client - you want <code>replace_certificate_signing_request_approval</code>... | jaxxstorm |
<p>I know we can set Public-IP as a static if we define LoadBalancer but can we set a static Cluster IP for service?</p>
<p>Example:</p>
<pre><code>**NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE**
service/my-application-service ClusterIP 10.111.67.245 <none> ... | Makiki | <p>It looks like you can specify the clusterIP field under spec on a ClusterIP kind service.</p>
<p>Example:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
name: myawesomeservice
namespace: myawesomenamespace
spec:
clusterIP: 10.43.11.51
...
</code></pre>
<p>Most relevant snippet from docs</p>
<p>"I... | Brandon |
<p>Currently running a fresh "all in one VM" (stacked master/worker approach) kubernetes <code>v1.21.1-00</code> on Ubuntu Server 20 LTS, using</p>
<ul>
<li>cri-o as container runtime interface</li>
<li>calico for networking/security</li>
</ul>
<p>also installed the kubernetes-dashboard (but I guess that's no... | Robert Heine | <p>Answer is pretty much here: <a href="https://serverfault.com/questions/1064313/ambassador-service-stays-pending">https://serverfault.com/questions/1064313/ambassador-service-stays-pending</a> . After installing a <code>load balancer</code> the whole setup worked. I decided to go with <code>metallb</code> (<a href="h... | Robert Heine |
<p>I am to patch an image onto init containers</p>
<p>my image is stored in a variable called $IMAGE_NAME </p>
<p>When I run </p>
<blockquote>
<p>kubectl patch deployment production-art-backend -p {"spec":{"template":{"spec":{"initContainers":[{"name":"run-migrations","image":"$IMAGE_NAME"}]}}}}</p>
</blockquote>... | cjmash | <p>This is a bash issue, not necessarily a <code>kubectl</code> issue!</p>
<p>Because the JSON string requires double quotes, you need to wrap the variable inside single quotes. Try this:</p>
<pre><code>kubectl patch deployment production-art-backend -p {"spec":{"template":{"spec":{"initContainers":[{"name":"run-migr... | jaxxstorm |
<p>Practicing with Kubernetes.</p>
<p>Is it possible to create a <code>YAML</code> deployment object and its configuration through <code>Bash</code> only? </p>
<p>I have tried this:</p>
<pre><code>kubectl create -f deployment.yaml
</code></pre>
<p>to create a yaml so i could edit later. However it just displays </p... | dude Funk1 | <p>All the answers so far advocate actually deploying to the cluster, then retrieving the running deployment. </p>
<p>Using the <code>--dry-run</code> you can get the YAML format of the object without actually deploying anything. For example:</p>
<pre><code>kubectl create deployment nginx --image=nginx --dry-run -o y... | jaxxstorm |
<p>Can I start minikube on a remote dedicated server to develope and test kubernetes with my team?
For now we didn‘t want to make a real 3 node cluster to safe money and I only can find information about minikube running for locally development.</p>
| RoboFlax | <p>Minikube is only designed for local development. You need to deploy a Kubernetes cluster using something like <a href="https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm/" rel="nofollow noreferrer">kubeadm</a></p>
| jaxxstorm |
<p><strong>Short description</strong></p>
<p>I am creating whole environment for some microservices. I have REST API written in Java with spring boot. I am also using keycloak as identity provider. I put them both in kubernetes cluster (minikube) and set up ingress to provide external access. To expose ingress as local... | aFku | <p>The value of <code>spring.security.oauth2.resourceserver.jwt.issuer-uri</code> must match exactly the value of tokens <code>iss</code> claim (even trailing <code>/</code>, if any is important).</p>
<p>Two options for you:</p>
<ul>
<li>use different hostnames in <code>spring.security.oauth2.resourceserver.jwt.issuer-... | ch4mp |
<p>I'm trying to access the dashboard but I'm getting the following error</p>
<pre><code>{
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "services \"kubernetes-dashboard\" is forbidden: User \"operation\" cannot get services/proxy in the namespace \"kube-system\"",... | user672009 | <pre><code>kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pod-reader
rules:
- apiGroups: [""]
resources:
- services/proxy
verbs: ["get", "list", "watch"]
</code></pre>
| user672009 |
<p>I'm trying to execute a <code>curl</code> command inside a container in <code>gke</code>.</p>
<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: app
spec:
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: app
image: a... | itaied | <p>You don't need to wrap the auth header in quotes, kubernetes will do that for you.</p>
<pre><code>apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: app
spec:
schedule: "* * * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: app
image: appropri... | jaxxstorm |
<p>Following the sample at <a href="https://github.com/thomasdarimont/helm-charts/blob/master/charts/keycloakx/examples/postgresql" rel="nofollow noreferrer">https://github.com/thomasdarimont/helm-charts/blob/master/charts/keycloakx/examples/postgresql</a>, I'm trying to install Keycloak and Postrgresql with helm chart... | ch4mp | <p>So, the SQL errors during init are just some noise and the server was actually correctly installed. My issue was in the ingress rules to access it.</p>
<h4>How did I figure that out?</h4>
<p>I temporarily exposed the DB and explored it with my favorite DB admin tool (I already have a local Postgres bound to 5432, so... | ch4mp |
<p>How can I get a list of the pods running on the same Kubernetes node as my own (privileged) pod, using the official Python Kubernetes client? That is, how can a pod identify the concrete Kubernetes node it is running on and then query for a full list of pods on this node only?</p>
| TheDiveO | <p>I'm making the assumption here that you've deployed a pod to the cluster, and now you're trying to query the node it's running on.</p>
<p>This is actually two distinct problems:</p>
<blockquote>
<p>That is, how can a pod identify the concrete Kubernetes node it is running on</p>
</blockquote>
<p>There's two way... | jaxxstorm |
<p>I have setup Minikube on my macbook pro laptop.</p>
<p>Docker Community Edition Version 18.06.1-ce-mac73
Mac OS High Sierra 10.13.6
Istio 1.0.3 release</p>
<pre><code>$ minikube version
minikube version: v0.30.0
$ minikube update-check
CurrentVersion: v0.30.0
LatestVersion: v0.30.0
$ helm template install/kube... | user674669 | <p>I read the ideas at <a href="https://github.com/kubernetes/minikube/issues/567" rel="nofollow noreferrer">https://github.com/kubernetes/minikube/issues/567</a></p>
<p>I recreated my minikube VM. These instructions worked for me:</p>
<pre><code>$ minikube stop
$ minikube delete
$ minikube start --vm-driver=hyperkit... | user674669 |
<p>I have deployed Google cloud Kubernetes cluster. The cluster has internal IP only. </p>
<p>In order to access it, I created a virtual machine <code>bastion-1</code> which has external IP. </p>
<p>The structure: </p>
<pre><code>My Machine -> bastion-1 -> Kubernetes cluster
</code></pre>
<p>The connection to... | No1Lives4Ever | <p>You can't do this right now.</p>
<p>The reason is because the connections used for commands like exec and proxy use SPDY2.</p>
<p>There's a bug report <a href="https://github.com/kubernetes/kubernetes/issues/58065" rel="nofollow noreferrer">here</a> with more information.</p>
<p>You'll have to switch to using a H... | jaxxstorm |
<p>I'm trying to provision/deprovision service instance/binding from my cloud provider (IBM cloud private), Currently, there is a bug that if the service is not deprovisioned in ICP, that leaves me the orphan service instance on my ICP environment which I can't delete even with force option.
They provide a workaround s... | XYZ_Allen | <p>I'm not sure how this works with the ServiceInstance and ServiceBinding specifically, but you can use <a href="https://kubernetes.io/docs/tasks/run-application/update-api-object-kubectl-patch/" rel="noreferrer">kubectl patch</a> to update objects in place. As an example:</p>
<pre><code>kubectl patch ServiceInstance ... | jaxxstorm |
<p>So, currently i have a front-end server, a bff( back end for front end server also named gateway ) , a resource server and the auth server.</p>
<p>The BFF is configured as java spring boot with spring oauth 2 client dependency.</p>
<p>Every oauth flow is done trought the BFF server. This BFF redirects to the front e... | loredon | <p>My <a href="https://github.com/ch4mpy/spring-addons/tree/master/samples%2Ftutorials" rel="nofollow noreferrer">BFF tutorial</a> is <a href="https://bff.demo.c4-soft.com/ui/" rel="nofollow noreferrer">deployed</a> to a K8s cluster and one of the 3 authorization servers (a Keycloak instance) is hosted by the same clus... | ch4mp |
<p>I need to write a new Pulumi program to do some k8s stuff. One task is creating new namespaces in different clusters.</p>
<p>What I <em>want</em> to do should look like this:</p>
<pre class="lang-js prettyprint-override"><code> const ns1 = new k8s.core.v1.Namespace("foo-ns", {cluster: "foo_cluster&... | FrustratedWithFormsDesigner | <p>You can achieve this using a resource provider, concretely, an explicit <a href="https://www.pulumi.com/docs/intro/concepts/resources/providers/#explicit-provider-configuration" rel="nofollow noreferrer">resource provider</a></p>
<p>The <a href="https://www.pulumi.com/registry/packages/kubernetes/api-docs/provider/"... | jaxxstorm |
<p>I am deploying my environment through terraform, I have a sqs against which I have set cloud watch alarms. My question is based on cloudwatch alarm can I set my eks to autoscale.</p>
<p>My next question is that if there is a way to do it through nodes/java</p>
| Nabs | <p>Why reinvent the wheel? Just use the cluster-autoscaler <a href="https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler" rel="nofollow noreferrer">https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler</a></p>
| jaxxstorm |
<p>Trying to set up Calico on-premises Kubernetes cluster.</p>
<p>Initializing cluster <code>kubeadm init --pod-network-cidr=192.168.0.0/16</code>
Using <code>https://docs.projectcalico.org/manifests/calico.yaml</code> manifest.</p>
<pre><code>~# calicoctl node status
Calico process is running.
IPv4 BGP status
+------... | Jonas | <p>As nodes had different network interfaces, <code>calico-node</code> autodetected different networks on nodes. To fix this I added <code>IP_AUTODETECTION_METHOD</code> env var to <code>calico-node</code> <code>DaemonSet</code>. In my case I used these env var values:</p>
<pre><code> # Auto-detect the BGP IP address... | Jonas |
<p>My vanilla kubernetes cluster running on 'Docker for Mac' was running fine without any real load. Now, I deployed a few services and istio. Now, I am getting this error:</p>
<pre><code>$ kubectl get pods --all-namespaces
Unable to connect to the server: net/http: TLS handshake timeout
</code></pre>
<p>Where can I ... | user674669 | <p><a href="https://i.stack.imgur.com/mBCRI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mBCRI.png" alt="enter image description here"></a></p>
<p>I increased the RAM to 8GB, CPUs to 4 and swap space to 4GB, restarted Docker For Mac. kubectl works fine now.</p>
| user674669 |
<p>Unable to use Kubernetes internal DNS when <code>hostNetwork</code> is used:</p>
<pre><code>/ test# nslookup echo
Server: 10.96.0.10
Address 1: 10.96.0.10
nslookup: can't resolve 'echo'
</code></pre>
<p>Without <code>hostNetwork</code>:</p>
<pre><code>/ test# nslookup echo
Server: 10.96.0.10
Address 1: 10.96.... | Jonas | <p>A fresh install of Kubernetes 1.19.0 solved this problem.</p>
| Jonas |
<ul>
<li><p>Can Kubernetes pods share significant amount of memory?</p>
</li>
<li><p>Does copy-on-write style forking exist for pods?</p>
</li>
</ul>
<p>The purpose is to make pods spawn faster and use less memory.</p>
<p>Our scenario is that we have a dedicated game server to host in kubernetes. The problem is that on... | Boyang | <p>A different way to resolve the issue would be if some of the initialisation can be baked into the image.</p>
<p>As part of the docker image build, start up the game server and do as much of the 30s - 1min initialisation as possible, then dump that part of the memory into a file in the image. On game server boot-up, ... | Jiří Baum |
<p>I have a problem with ingress. It just doesn't work. How to understand and find
what is wrong?</p>
<p>I have kubernetes bare metal.</p>
<p>Installed helm chart</p>
<pre><code>helm install stable/nginx-ingress --name ingress --namespace nginx-ingress
</code></pre>
<p>In the same namespace deployed ingress</p>
<... | JDev | <p>If you're using a baremetal cluster, you're missing a piece of the puzzle.</p>
<p>Ingresses lie behind an ingress controller - you still need to expose that using a service with <code>Type=LoadBalancer</code> which isn't possible by default with a cloud provider.</p>
<p>There is however, a solution. <a href="https... | jaxxstorm |
<p>I have a Service that is deployed as a StatefulSet in one Kubernetes cluster, and with static IPs in another cluster.</p>
<pre><code>kind: StatefulSet
apiVersion: apps/v1
metadata:
name: statefulset-name
spec:
...
</code></pre>
<p>I want to use the same host to access the service in both clusters. I also need to... | Martín Coll | <p>A StatefulSet will eventually generate a Service for the Pod. Digging into the <a href="https://github.com/kubernetes/kubernetes/blob/da23196df6d519c657a27c68932c62aa35e87dc5/pkg/controller/util/endpoint/controller_utils.go#L162" rel="nofollow noreferrer">source code</a> I found that the pod <code>subdomain</code> w... | Martín Coll |
<p>Is there a way to fetch a specific argo workflow age in seconds using <code>kubectl</code> command?</p>
<p>I've a requirement for comparing the argo workflow age. If the workflow age is greater than 24 hours I need to terminate the workflow.</p>
| Biru | <p>You should probably use <a href="https://github.com/argoproj/argo-workflows/blob/master/examples/timeouts-workflow.yaml" rel="nofollow noreferrer">Argo Workflow's built-in, declarative timeout feature</a>:</p>
<pre class="lang-yaml prettyprint-override"><code>spec:
activeDeadlineSeconds: 86400
</code></pre>
<p>Tha... | crenshaw-dev |
<p>I'm having a trouble setting up access to kubernetes cluster from the outside. This is what I'm trying to achieve:
- Have ability to access to kube cluster from the outside (from nodes that are not "master" and even from any remote) to be able to do kube actions only on specific namespace.</p>
<p>My logic was to do... | Bakir Jusufbegovic | <p>You need to generate a kubeconfig from the token. There are <a href="https://github.com/zlabjp/kubernetes-scripts/blob/master/create-kubeconfig" rel="nofollow noreferrer">scripts</a> to handle this. Here it is for posterity:</p>
<h1>!/usr/bin/env bash</h1>
<pre><code># Copyright 2017, Z Lab Corporation. All rights r... | jaxxstorm |
<p>I am using minikube on my local machine. Getting this error while using kubernetes port forwarding. Can anyone help?</p>
<pre><code>mjafary$ kubectl port-forward sa-frontend 88:80
Unable to listen on port 88: All listeners failed to create with the following errors:
Unable to create listener: Error listen tcp4 1... | Jaf | <p><code>kubectl</code> fails to open the port 88 because it is a privileged port. All ports <1024 require special permissions.</p>
<p>There are many ways to solve your problem.</p>
<ul>
<li>You can stick to ports >= 1024, and use for example the port 8888 instead of 88: <code>kubectl port-forward sa-frontend 888... | user48678 |
<p>I'm trying to find a better way to solve this scenario than resorting to a yaml inside a pulumi.apply call (which has problems with preview apparently).</p>
<p>The idea here is (using Azure Kubernetes) to create a secret and then make it available inside a pod (nginx pod here just for test purposes).</p>
<p>The curr... | TomHells | <p><code>SecretsProviderClass</code> is a <a href="https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/" rel="nofollow noreferrer">CustomResource</a> which isn't typed because the fields can be anything you want.</p>
<pre class="lang-js prettyprint-override"><code>const secret = new k8s... | jaxxstorm |
<p>I'm trying to access the Argo workflow archive via the REST API. The <a href="https://argoproj.github.io/argo-workflows/access-token/" rel="nofollow noreferrer">documentation</a> states that I need to create a role and a token, so I that's what I did. A role with minimal permissions can be created like so:</p>
<pre>... | Matthias Berndt | <p>Looks like the role/serviceaccount/rolebinding created according to the docs only grant permissions to list Workflows in the <code>argo</code> namespace (whether archived or not).</p>
<p>The namespace can be specified for the Archive like so:</p>
<pre class="lang-sh prettyprint-override"><code>curl http://localhost:... | crenshaw-dev |
<p>I'm learning about creating a k8s cluster on DO using terraform, I've been trying to take the <code>ID</code> of the single K8s node I've created, and reference it from the loadbalancer.</p>
<p>The main reasoning for this is so that I can declare the FQDN in the <code>.tf</code> file.</p>
<p>First, here is the clu... | denski | <p>You're using the wrong attribute reference for your load balancer droplet ids.</p>
<p><code>droplet_ids = ["${digitalocean_kubernetes_cluster.foo.node_pool.0.id}"]</code></p>
<p>This will use the <code>node_pool</code> id linked <a href="https://www.terraform.io/docs/providers/do/r/kubernetes_cluster.html#id-1" re... | jaxxstorm |
<p>How does Kubernetes knows what external cloud provider on it is running?</p>
<p>Is there any specific service running in Master which finds out if the Kubernetes Cluster running in AWS or Google Cloud?</p>
<p>Even if it is able to find out it is AWS or Google, from where does it take the credentials to create the ... | karthikeayan | <p>When installing Kubernetes cloud provider flag, you must specify the <code>--cloud-provider=aws</code> flag on a variety of components. </p>
<p><strong><a href="https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/#options" rel="nofollow noreferrer">kube-controller-manager</a></... | jaxxstorm |
<p>Imagine I have a workflow with 5 steps.</p>
<p>Step 2 may or may not create a file as its output (which is then used as input to subsequent steps).</p>
<ul>
<li>If the file is created, I want to run the subsequent steps.</li>
<li>If no file gets created in step 2, I want to mark the workflow as completed and not exe... | Krzysztof Kozmic | <p>By default, a step that exits with a non-zero exit code fails the workflow.</p>
<p>I would suggest writing an <a href="https://github.com/argoproj/argo/blob/master/examples/output-parameter.yaml" rel="nofollow noreferrer">output parameter</a> to determine whether the workflow should continue.</p>
<pre class="lang-ya... | crenshaw-dev |
<p>We provide kubernetes cluster for many users, the separation between applications by namespace.</p>
<p>For deploy use kubernetes-helm. There are situations when we need to close the opportunity to deploy the app in the cluster. One option is to change permissions for default sa (which the use kubernetes-helm).</p>
... | Arslanbekov Denis | <p>You'd use an <a href="https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/" rel="nofollow noreferrer">admission controller</a>.</p>
<p>Unfortunately, this might involve writing some code to manage it. There are tools out there that help, like <a href="https://www.openpolicyagent.org/docs/k... | jaxxstorm |
<p>Usecase:
I have a Docker desktop and kubernetes enabled within it. From the kubernetes node, I want to connect to a database running on my laptop without using my laptop's ip address.</p>
<p>I want to refer to the Windows Host machine from within Kuberntes Endpoint without using the dynamic IP of the host. In docker... | Sreeram | <p>Use <code>host.docker.internal</code>.</p>
<p>I've tested on Mac, but it should work the same for Windows.</p>
<ol>
<li><p>Spin up an alpine pod (deployment yaml <a href="https://github.com/infrabricks/kubernetes-standalone/blob/master/examples/alpine.yml" rel="nofollow noreferrer">borrowed from rossbackp</a>).</p>
... | crenshaw-dev |
<p>Argo permits the dynamic generation of parallel workflow steps based on outputs from previous steps.</p>
<p>An example of this dynamic workflow generation is provided here: <a href="https://github.com/argoproj/argo-workflows/blob/master/examples/loops-param-result.yaml" rel="nofollow noreferrer">https://github.com/a... | mpatek | <p>Aggregated step output parameters are accessible via <code>steps.STEP-NAME.outputs.parameters</code>. It's not possible to access an aggregated set of outputs for one parameter by name.</p>
<p>This slight change to your workflow should get you what you need:</p>
<pre class="lang-yaml prettyprint-override"><code>apiV... | crenshaw-dev |
<p>So basically I am starting with Kubernetes and wanted to try some things out. At this point I want to deploy a Webserver, a Database, a NodeJs Server and so on... And now, how do I decide how many instances of each of these services I need across my servers?</p>
| Max Gierlachowski | <p>This is a question with a complex answer depending on your particular application behavior and resource utilization. Put simply, the "short answer" is going to be: "It depends". It depends on these main factors:</p>
<ul>
<li>Application Resource Utilization
<ul>
<li>How much RAM, CPU, Disk, sockets,
etc... does ... | TrinitronX |
<p>How to Do Kubectl cp from running pod to local,says no such file or directory</p>
<p>I have contents in Ubuntu container as below</p>
<pre><code>vagrant@ubuntu-xenial:~/k8s/pods$ kubectl exec command-demo-67m2b -c
ubuntu
-- sh -c "ls /tmp"
docker-sock
</code></pre>
<p>Now simply i want to copy above /tmp conten... | Margaret real | <p>In your original command to exec into a container, you pass the <code>-c ubuntu</code> command, meaning you're selecting the Ubuntu container from the pod:</p>
<pre><code>kubectl exec command-demo-67m2b -c
ubuntu
-- sh -c "ls /tmp"
</code></pre>
<p>However, in your <code>kubectl cp</code> command, you're not spe... | jaxxstorm |
<p>I want to use Argo v2.4.0 and I ran the following command:</p>
<pre><code>oc apply -n <my_ns> -f https://raw.githubusercontent.com/argoproj/argo/v2.4.0/manifests/install.yaml
</code></pre>
<p>This did not change the output of <code>argo version</code> (v2.3.0) notibly because it is installing Argo on the clust... | Aviral Srivastava | <p><strong>In general:</strong></p>
<p>Follow the download instructions for your target <a href="https://github.com/argoproj/argo-workflows/releases/tag/v3.1.3" rel="nofollow noreferrer">Argo Workflows release</a>.</p>
<p><strong>Specific to 2.4.0:</strong></p>
<p>The download links were incorrect for 2.4.0.</p>
<p>The... | crenshaw-dev |
<p>We changed kubernetes node version because of this message, and because for some reason, pods were unable to be scheduled <a href="https://i.stack.imgur.com/NQ7Ez.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NQ7Ez.png" alt="enter image description here"></a>
Before this message, however, there ... | Rainb | <p>Judging by the name your pod has, it wasn't provisioned using a deployment or a replicaset (if it was, like your other pods, it'd have a random id after its name) </p>
<p>More than likely, it's a standalone pod, which means one the node is gone, the pod is gone.</p>
<p>It might be possible to use <code>kubectl get... | jaxxstorm |
<p>I am trying to install Traefik on my DigitalOcean Kubernetes cluster using Helm.</p>
<pre><code>$ helm install -f traefik.values.yaml stable/traefik
</code></pre>
<p>I own the hypothetical domain <code>example.org</code> and the DNS record is managed through Digital Ocean</p>
<p>The <code>traefik.values.yaml</cod... | Jeff May | <p>Yes, the acme config for traefik is expecting you to have a DNS record exist.</p>
<p>You need to use something like <a href="https://github.com/kubernetes-incubator/external-dns" rel="nofollow noreferrer">external-dns</a> to register a DNS record for your ingress </p>
| jaxxstorm |
<p>Picked up as a reference: <a href="https://github.com/argoproj/argo/blob/master/examples/workflow-template/templates.yaml#L11" rel="nofollow noreferrer">https://github.com/argoproj/argo/blob/master/examples/workflow-template/templates.yaml#L11</a></p>
<p>Is it possible to pass input parameters as key-value pair coll... | colossal | <p>Argo Workflows (and WorkflowTemplates) <a href="https://github.com/argoproj/argo/issues/2077" rel="nofollow noreferrer">do not currently support dictionary-like input parameters</a>.</p>
<p>There are work-arounds. For example, you could pass your inputs as a JSON-encoded string. Or (if the inputs are particularly la... | crenshaw-dev |
<p>I want to run an app on any node. It should always have at least one instance per node, but more instances are allowed, primarily during an update to prevent downtime of that pod (and node).</p>
<p>Kubernetes deployment updates usually work by launching a new pod, and as soon as it is available the old one is termi... | Luca Steeb | <p>There was a very long set of discussions about adding this feature. You can see them <a href="https://github.com/kubernetes/kubernetes/issues/48841" rel="nofollow noreferrer">here</a> and <a href="https://github.com/kubernetes/enhancements/issues/373" rel="nofollow noreferrer">here</a></p>
<p>Long story short, this... | jaxxstorm |
<p>So i'm deploying my application stack on kubernetes sing helm charts and now i need to add some dependant server ip's and hostnames inside my pods /etc/hosts file so need help on this scenario</p>
| Satyashil Deshpande | <p>A helm templated solution to the original question. I tested this with helm 3.</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
spec:
template:
spec:
{{- with .Values.hostAliases }}
hostAliases:
{{ toYaml . | indent 8 }}
{{- end }}
</code></pre>
<p>For values such as:</p>
<pre><code>hostAliase... | Christian |
<p>I'm learning about semaphores in the Argo project workflows to avoid concurrent workflows using the same resource.</p>
<p>My use case is that I have several external resources which only one workflow can use one at a time. So far so good, but sometimes the resource needs some maintenance and during that period I don... | tse | <p>Quick fix: after applying the ConfigMap change, cycle the workflow-controller pod. That will force it to reload semaphore state.</p>
<p>I couldn't reproduce your exact issue. After using <code>kubectl edit</code> to set the semaphore to <code>0</code>, any newly submitted workflows remained <code>Pending</code>.</p>... | crenshaw-dev |
<p>I've installed Kubernetes with docker-for-desktop.
Now I want to create a user (following RBAC principle). I'm using private certificates and want to sigh them against the <code>ca.crt</code> of the cluster.</p>
<p>For minikube this <code>ca.crt</code> was in <code>.minikube/ca.crt</code>but I can't find it in the ... | DenCowboy | <p>By default, your HyperKit VM doesn't mount volumes locally in docker-for-desktop.</p>
<p>Your best bet is to copy the ca.crt manually to your machine using <code>kubectl cp</code>.</p>
<p>Example:</p>
<pre><code>kubectl cp kube-apiserver-docker-desktop:run/config/pki/ca.crt -n kube-system /tmp/ca.crt
</code></pre... | jaxxstorm |
<p>I am setting up External-DNS with Terraform. <a href="https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/azure.md" rel="nofollow noreferrer">Per the documentation</a>, I have to manually create an <code>azure.json</code> file and mount it as a secret volume. The directions also state:</p>
<bl... | user658182 | <p>This is the Terraform version of using the <code>--from-file</code> flag with kubectl.</p>
<p>Basically, you'll add the name of the file and its contents per the structure of the <code>data</code> block below.</p>
<pre><code>resource "kubernetes_secret" "azure_config_file" {
metadata {
name... | user658182 |
<p>Is this possible inside the kubernetes cluster?</p>
<p>All examples I've found are copying from a local disk to a pod or vice versa, or is the only option to copy from node to node, for example over SSH, SCP or with other utilities?</p>
| JDev | <p>It's not possible to do cluster to cluster copying. You'd need to use <code>kubectl cp</code> to copy it locally, then copy the file back:</p>
<pre><code>kubectl cp <pod>:/tmp/test /tmp/test
kubectl cp /tmp/test <pod>:/tmp/test
</code></pre>
<p>If you are trying to share files between pods, and only one ... | jaxxstorm |
<p>I kind of new on Kubernetes stuff and I'm trying to improve one current system we have here.
The Application is developed using Spring Boot and until now it was using HTTP (Port 8080) without any encryption. The system requirement is to enable e2e-encryption for all Data In-Transit. So here is the problem.</p>
<p>Cu... | BertKlinger | <p>Here is what I found on how to fix the issue.</p>
<p>After reading a lot of documentation related to Kubernetes and GCP I found a document on GCP explaining to use annotations on Service declaration. Take a look at lines 7-8.</p>
<pre class="lang-yaml prettyprint-override"><code>---
apiVersion: v1
kind: Service
meta... | BertKlinger |
<p>I am trying to figure out how to set up a <strong>work queue</strong> with <strong>Argo</strong>. The Argo Workflows are computationally expensive. We need to plan for many simultaneous requests. The workflow items are added to the work queue via HTTP requests.</p>
<p>The flow can be demonstrated like this:</p>
<pre... | Espen Finnesand | <p>Argo Workflows has no concept of a queue, so it has no way of knowing when the queue is full. If you need queue control, that should happen before submitting workflows.</p>
<p>Once the workflows are submitted, there are a number of ways to limit resource usage.</p>
<ol>
<li><a href="https://github.com/argoproj/argo-... | crenshaw-dev |
<p>How do I restore kubernetes cluster using kops?
I've kubernetes state files in my s3 bucket.</p>
<p>Is there a way to restore kubernetes cluster using kops?</p>
| prranay | <p>As you mention, kops stores the state of the cluster in an S3 bucket. If you run <code>kops create cluster</code> with the same state file, it will recreate the cluster as it was before, with the same instancegroups and master configuration. This assumes the cluster has been deleted, if not, you'll need to use the <... | jaxxstorm |
<p>I have deployed <code>dask_gateway</code> 0.8.0 (with <code>dask==2.25.0</code> and <code>distributed==2.25.0</code>) in a Kubernetes cluster.
When I create a new cluster with:</p>
<pre><code>cluster = gateway.new_cluster(public_address = gateway._public_address)
</code></pre>
<p>I get this error:</p>
<pre><code>Tas... | Andrea Zonca | <p>You need to use compatible versions of <code>dask</code> and <code>dask-distributed</code> everywhere.</p>
<p>I believe this is an error related to an upgrade in the communications protocol for <code>distributed</code>. See <a href="https://github.com/dask/dask-gateway/issues/316#issuecomment-702947730" rel="nofollo... | Dan Gerlanc |
<p>The question says everything really - is it possible to schedule a Pod based on the namespace it is assigned to?</p>
| dippynark | <p>It's not built in as far as I know, but there's a couple of ways you could do it:</p>
<p>Create a mutating webhook that modifies the pod affinity rules if the <code>namespace == something</code>. Using something like this: <a href="https://github.com/slok/kubewebhook" rel="nofollow noreferrer">https://github.com/sl... | jaxxstorm |
<p>First of all, i'm not an expert, so bear with me. I managed to install and setup Rancher in my vcenter at home (got a baremetal setup for free, a bit old, but still ok). I have 3 nodes running well and i can also provision VMs in vmware with it. On top of it, i also added Kubernetes within Rancher. Now, my plan is t... | Cristian Cristian | <p>The reason you might be struggling is because when using BareMetal, you don't have an external LoadBalancer provisioned. When using things like Traefik, you need to expose the ingress controller on a NodePort or something else.</p>
<p>If you're using baremetal, you have a couple of options for ingress into the clus... | jaxxstorm |
<p>I want to deploy a gRPC + HTTP servers on GKE with HTTP/2 and mutual TLS. My deployment have both a readiness probe and liveness probe with custom path. I expose both the gRPC and HTTP servers via an Ingress.</p>
<p>deployment's probes and exposed ports:</p>
<pre><code> livenessProbe:
failureThreshold: 3
... | shelll | <p>Editing the health check to point to the readiness probe's path and changed the port to the one of the HTTP back-end fixed this issue (look for the port in the HTTP back-end's health check. it is the NodePort's.). It runs know without any issues.</p>
<p>Using the same health check for the gRPC back-end as for the H... | shelll |
<p>I need to run two "instances" of an application, but they should access the same DB, and I need it to be run on my Kubernetes cluster, so I can provide multi-AZ access to users.</p>
<p>Is it possible to be achieved on Kubernetes? Do I need StatefulSets? And, more important, is it possible to manage the DB pod with ... | Pedro Henrique | <blockquote>
<p>I need to run two "instances" of an application, but they should access the same DB, and I need it to be run on my Kubernetes cluster, so I can provide multi-AZ access to users.</p>
</blockquote>
<p>This really depends on what you mean by <em>instances</em>. The recommended way is to create a deploym... | jaxxstorm |
<p>I have a Kubernetes cluster that runs a number of independent, discrete services. I want to use helm to deploy them, and I have made a helm chart for every individual resource.</p>
<p>However, now I want to be able to deploy the cluster as a single entity, but it is not clear to me how helm supports stitching toget... | mstorkson | <p>Use <a href="https://helm.sh/docs/chart_template_guide/subcharts_and_globals/" rel="nofollow noreferrer">helm subcharts</a></p>
<p>You'd need to have something like a meta-chart, <code>myapps</code>. Then you'd add a <code>requirements.yaml</code> file like so:</p>
<pre><code># myapp/requirements.yaml
dependencies... | jaxxstorm |
<p>I have a number of secret "environment variables" I want to get into a kubernetes cluster. Currently, I have a directory of these secrets where each var has a corresponding file named the same way as the variable it is supposed to be assigned to. Using <code>docker-compose</code>, this gives me a script like <code>f... | Ben | <p>Here is one way you could accomplish this outside of Kustomize.</p>
<p>Secrets can be consumed as environment variables in the Pod spec using the <code>valueFrom</code> keyword. Documentation about this is at <a href="https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables" ... | Andy Shinn |
<p>I tried to launch Istio on Google Kubernetes Engine using the Google Cloud Deployment Manager as described in the Istio <a href="https://istio.io/docs/setup/kubernetes/quick-start-gke-dm/" rel="nofollow noreferrer">Quick Start Guide</a>.
My goal is to have a cluster as small as possible for a few very lightweight mi... | sceee | <p>As per <a href="https://istio.io/docs/guides/bookinfo/" rel="nofollow noreferrer">this page</a></p>
<blockquote>
<p>If you use GKE, please ensure your cluster has at least 4 standard GKE nodes. If you use Minikube, please ensure you have at least 4GB RAM.</p>
</blockquote>
| jaxxstorm |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.