Question
stringlengths
65
39.6k
QuestionAuthor
stringlengths
3
30
Answer
stringlengths
38
29.1k
AnswerAuthor
stringlengths
3
30
<p>How to resolve the error no module named pandas when one node (in Airflow's DAG) is successful in using it(pandas) and the other is not?</p> <p>I am unable to deduce as to why I am getting an error no module named pandas.</p> <p>I have checked via <code>pip3 freeze</code> and yes, the desired pandas version does s...
aviral sanjay
<p><a href="https://github.com/apache/incubator-airflow/blob/v1-10-stable/setup.py#L292" rel="nofollow noreferrer">Pandas is generally required</a>, and sometimes used in some hooks to return dataframes. Well, it's possible that Airflow was installed with <code>pip</code> and not <code>pip3</code> possibly being added ...
dlamblin
<p>I tried to install ibm-eventstreams-dev v 0.1.2 into my Mac. </p> <p>After I installed eventstreams into my Mac, there's always several pods that can't run. It includes three kafka pods: es-ibm-es-kafka-sts-0/1/2, es-ibm-es-ui-deploy-69758d9dfd-kc2zx, es-ibm-es-ui-oauth2-client-reg-pgvq6 and there also have a faile...
DoubleQueens
<blockquote> <p>So I have two questions about the ibm-event-stream:<br> Does ibm-eventstreams-dev only supported on ICP? Can I install it on my local environment without ICP environment?</p> </blockquote> <p>Event Streams will only run on IBM Cloud Private (ICP). That's because ICP provides more than just a Kuber...
dalelane
<p>I hope it's ok to ask for your advice.</p> <p>The problem in a nutshell: my pipeline cannot pull private images from GHCR.IO into Okteto Kubernetes, but public images from the same private repo work.</p> <p>I'm on Windows 10 and use WSL2-Ubuntu 20.04 LTS with kinD for development and tried minikube too.</p> <p>I get...
Michael
<p>I was able to pull a private image by doing the following:</p> <ol> <li>Create a personal token in GitHub with <code>repo</code> access.</li> <li>Build and push the image to GitHub's Container registry (I used <code>okteto build -t ghcr.io/rberrelleza/go-getting-started:0.0.1</code>)</li> <li>Download my <a href="ht...
Ramiro Berrelleza
<p>I've been using the kubectl to upload Airflow workflows to the kubernetes (/usr/local/airflow/dags) manually. It is possible to do this without using the kubectl? by using a python script? or something else? If it's possible would you be able to share your source? or your python script? Thanks, Appreciate</p>
Mihail
<p>This totally depends on your setup. E.G. We use AWS and so we have the DAGs syncing from an S3 bucket path every 5 minutes. We just put dags into S3. I see that some Kubernetes setups use a kind of shared volume defined by a git repository, that might also work. Airflow itself (the webserver(s), worker(s), nor sched...
dlamblin
<p>I'm trying to deploy okteto environment on Visual Studio Code to use Remote Development on Kubernetes.</p> <p>Following the official steps (<a href="https://okteto.com/blog/remote-kubernetes-development/" rel="nofollow noreferrer">https://okteto.com/blog/remote-kubernetes-development/</a>), I executed &quot;Okteto: ...
Daigo
<p>Using a proxy is not currently supported in the Okteto. We're looking into it though.</p> <p>For now, a workaround is to manually download the syncthing binary and save it as<code>%HOME%\.okteto\syncthing.exe</code></p>
Ramiro Berrelleza
<p>Is there currently a way to serve websockets from an application deployed on Okteto cloud given the okteto-specific limitations around <code>Ingress</code>es and <code>Service</code>s ?</p> <hr> <p>I've read that this would only be possible using a <code>Service</code> or <code>Ingress</code> of type <code>LoadBal...
Nicolas Marshall
<p>You don't need a LoadBalancer to use WebSockets, they can be served from an Ingress with a ClusterIP as well (this is what Okteto Cloud uses for our endpoints). This setup supports HTTPS, WebSockets and even GRPC-based endpoints.</p> <p><a href="https://github.com/okteto/node-websocket" rel="nofollow noreferrer">Th...
Ramiro Berrelleza
<p>I was working on Jenkins for many days and deploy my services to Kubernetes.</p> <p>I recently came across Jenkins X, I also found a Helm chart for Jenkins through which I can host Jenkins in Kubernetes. Now I'm confused if they both are same?</p>
RohithVallabhaneni
<p>No they are different. I assume the helm chart you found installs and configure Jenkins on Kubernetes - perhaps configured with some agents to run builds. </p> <p>Jenkins X is a kubernetes native implementation of CI/CD, it uses some components of Jenkins, but has a lot more to it (for example, applications, enviro...
Michael Neale
<p>Recently, I tried to setup Jenkins X on a kubernetes cluster. However there exists some problem during installation. </p> <p>There are several options in <code>jx create cluster</code> such as aks(create with AKS), aws(create with AWS), minikube(create with Minikube) and etc.</p> <p>However there is no option whic...
jwl1993
<p>when you have your cluster setup such that you can run <code>kubectl</code> commands against it, you can run <code>jx boot</code> to setup your jx installation. You don't need to use <code>jx create cluster</code> as your cluster already exists. </p>
Michael Neale
<p>I'm creating a custom resource definition (CRD) with an associated controller using <a href="https://github.com/kubernetes-sigs/kubebuilder" rel="nofollow noreferrer">kubebuilder</a>. My controller reconcile loop creates a deployment sub-resource and parents it to the custom resource using <code> controllerutil.SetC...
Chris Gillum
<p>Using @coderanger's hint, I could see that the <code>metadata.ownerReferences</code> weren't being set correctly when running the following command:</p> <pre class="lang-sh prettyprint-override"><code>kubectl get deployments sample-deployment -o yaml </code></pre> <p>The problem was my controller's reconcile code. I...
Chris Gillum
<p>I have deployed Azure Durable Http Triggered Function app in Azure Kubernetes Service. I used Visual Studio Code to create the function app. I have followed instructions from this this <a href="https://dev.to/anirudhgarg_99/scale-up-and-down-a-http-triggered-function-app-in-kubernetes-using-keda-4m42" rel="nofollow ...
Shariful Nibir
<p>Try adding a <code>WEBSITE_HOSTNAME</code> environment variable with <code>&lt;ip-address&gt;:&lt;port&gt;</code> as the value, where <code>&lt;ip-address&gt;:&lt;port&gt;</code> refers to the address that can be used to reach your function app from outside.</p> <p>This error happens when you use an API that depends...
Chris Gillum
<p>Stateless is the way to go for services running in pods however i have been trying to move a stateful app which needs to perform session persistence if one pod goes does for resiliency reasons.</p> <p>In websphere world IHS can be used to keep track of the session and if a node goes down it can be recreated on the ...
Sudheej
<p>Yes. Store the session somewhere. Spring boot supports out of the box MongoDB, Redis, Hazelcast or any JDBC database.</p> <blockquote> <p>Spring Boot provides Spring Session auto-configuration for a wide range of data stores. When building a Servlet web application, the following stores can be auto-configured...
Strelok
<p>I'm trying to create a simple nginx service on GKE, but I'm running into strange problems. </p> <p>Nginx runs on port 80 inside the Pod. The service is accessible on port 8080. (This works, I can do <code>curl myservice:8080</code> inside of the pod and see the nginx home screen)</p> <p>But when I try to make it p...
Nick
<p>The configuration is missing a health check endpoint, for the GKE loadbalancer to know whether the backend is healthy. The <code>containers</code> section for the <code>nginx</code> should also specify:</p> <pre><code> livenessProbe: httpGet: path: / port: 80 </code></pre> <p>The <code>GET /</code> on...
Eric Platon
<p>I would like to expose my Kubernetes Managed Digital Ocean (single node) cluster's service on port 80 without the use of Digital Ocean's load balancer. Is this possible? How would I do this? </p> <p>This is essentially a hobby project (I am beginning with Kubernetes) and just want to keep the cost very low. </p>
Joseph Horsch
<p>You can deploy an Ingress configured to use the host network and port 80/443.</p> <ol> <li><p>DO's firewall for your cluster doesn't have 80/443 inbound open by default.</p> <p>If you edit the auto-created firewall the rules <a href="https://www.digitalocean.com/community/questions/how-to-customize-firewall-rules-fo...
rcoup
<p>The data needs to be loaded periodically (like once in a day), and it should be stored in SQL format so that the API can run SQL queries. We are thinking of loading it from HDFS. Currently we are thinking of using Apache Nifi using PutIgniteCache. </p> <p>I was thinking probably I can launch a remote Ignite client ...
sidharth padhee
<p>The documentation for Nifi says that <a href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-ignite-nar/1.9.0/org.apache.nifi.processors.ignite.cache.PutIgniteCache/index.html" rel="nofollow noreferrer">it uses the data streamer API</a>, so unless you need more control it doesn’t seem like a ...
Stephen Darlington
<p>Trying Ignite with Kubertenes deployment options. </p> <ol> <li>Is it zone-aware? Cannot find any docs &amp; configuration about this.</li> <li>Can I connect the Kubernetes cluster via an external client? I'd like to connect via <a href="https://apacheignite-net.readme.io" rel="nofollow noreferrer">C# client</a>.</...
Judith
<ol> <li>Broadly speaking, Ignite assumes all your nodes are close to one another. You could make it aware of multiple zones by using custom affinity functions, but it's not straight-forward. There are also third-party solutions (I work for GridGain who provide one) that support data centre replication, etc. that would...
Stephen Darlington
<p>I am trying to extract podname using the below jq query.</p> <pre class="lang-sh prettyprint-override"><code>❯ kubectl get pods -l app=mssql-primary --output jsonpath='{.items[0].metadata.name}' mssqlag-primary-deployment-77b8974bb9-dbltl% ...
Pradeepl
<p>I'm guessing <code>zsh</code> is your shell. The <code>%</code> is an indicator output by your shell to say that the last line output by <code>kubectl</code> had no newline character at the end. So it's not <em>extra</em> output, it's actually an indicator that the raw <code>kubectl</code> command outputs <em>less</...
Weeble
<p>We are trying to use control.sh to activate out Ignite cluster which is running in Kubernetes and has native persistence as described <a href="https://ignite.apache.org/docs/latest/tools/control-script" rel="nofollow noreferrer">here</a>, however we are getting to error below.</p> <p>We have also tried activating th...
RichardFeynman
<p>Activating the cluster relates to the lifecycle of the <em>cluster</em> rather than an individual pod, do you don't want to add it to the pod.</p> <p>Instead, it's a &quot;manual&quot; process once all your nodes/pods are up. <a href="https://medium.com/@sdarlington/activating-an-apache-ignite-cluster-on-kubernetes-...
Stephen Darlington
<p>Are there any know issues with running the org.apache.ignite.spi.discovery.tcp.ipfinder.kubernetes.TcpDiscoveryKubernetesIpFinder a purely IPv6 environment? I looked <a href="https://ignite.apache.org/docs/latest/clustering/network-configuration" rel="nofollow noreferrer">here</a> and it mentions there may be issue...
RichardFeynman
<p>I'm not aware of any IPv6 problems <em>per se</em>, so if your network is configured correctly I would expect it to work.</p> <p>The problem we typically see when IPv6 is enabled is that it's possible to route to the IPv4 address but <em>not</em> the IPv6 address -- which is why setting preferIPv4Stack works.</p>
Stephen Darlington
<p>We have observed following issue when we deploy Ignite Cluster on Open Shift</p> <p>We have created respective PV and PVC YAML files.</p> <p>One more important point is always it points to /ignite/work irrespective of Mount Path.</p> <p>Error details at POD: SLF4J: Failed to load class &quot;org.slf4j.impl.StaticLog...
Rameish
<p>It's expecting to be able to write to <code>/ignite/work</code> but there's no persistent volume there. You appear to be mounting them in <code>/tmp</code>. Suggest changing:</p> <pre><code>- name: work-vol mountPath: /tmp/work readOnly: false </code></pre> <p>To:</p> <pre><code>- name: work-vol mountPath: /ig...
Stephen Darlington
<p>I am trying to run an ASP.Net docker container on Kubernetes as a non-root user. I have this dockerfile:</p> <pre><code>FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 8443 FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY [&quot;MyProgram.API/MyProgr...
yesman
<p>Kestrel is trying to bind to port 80 and/or port 443 because that's its default unless you tell it otherwise, and you can't do that unless priviledged.</p> <p>You need to specify the ports, usually via environment variables, and expose them, e.g.</p> <pre><code># Declare ports above 1024, as an unprivileged non-root...
blowdart
<p>I have a Kubernetes setup of 7 Apache Ignite servers and over 100 clients.</p> <p>With my current Apache Ignite configuration, I am seeing the following line of log for the servers:</p> <pre><code>java.lang.OutOfMemoryError: Java heap space </code></pre> <p>Below is the memory configuration Apache Ignite server:<...
ho wing kent
<p>It depends on what you're trying to do -- persistence and SQL tend to use more heap space for example -- but both 2Gb and 768Mb are <em>much</em> smaller than I'd expect for an in-memory database.</p> <p>The <a href="https://www.gridgain.com/docs/latest/perf-troubleshooting-guide/memory-tuning" rel="nofollow norefe...
Stephen Darlington
<p>I am trying to install Operator Lifecycle Manager (OLM) — a tool to help manage the Operators running on your cluster — from the <a href="https://operatorhub.io/operator/gitlab-runner-operator" rel="nofollow noreferrer">official documentation</a>, but I keep getting the error below. What could possibly be wrong?</p>...
Frederico23
<p>To start off, I need to be clear about a few things:</p> <ol> <li>Based on the tags to the question, I see we are in PowerShell rather than a linux/unix or even Windows cmd shell</li> <li>In spite of this, we are using Unix <code>curl</code> (probably <code>curl.exe</code>), and not the PowerShell alias for <code>In...
Joel Coehoorn
<p>I deployed apache ignite cluster in google cloud referring [1], but it given class not found error as follows.</p> <p>[1]. <a href="https://apacheignite.readme.io/docs/google-cloud-deployment" rel="nofollow noreferrer">https://apacheignite.readme.io/docs/google-cloud-deployment</a></p> <p>Error message :</p> <pre><c...
Nuwan Sameera
<p>That's the old documentation. The new, updated ones are better: <a href="https://ignite.apache.org/docs/latest/installation/kubernetes/gke-deployment" rel="nofollow noreferrer">https://ignite.apache.org/docs/latest/installation/kubernetes/gke-deployment</a></p> <p>But, in short, you're missing the <code>ignite-kuber...
Stephen Darlington
<p>I need to create backups and restore for volumes in aws kubernetes cluster. I was reading about CSI driver in kubernetes docs. Though link below has mentioned the steps but I have few questions</p> <p><a href="https://kubernetes-csi.github.io/docs/snapshot-restore-feature.html" rel="nofollow noreferrer">https://kube...
curious_soul
<p>Don't use the infrastructure to perform a backup. Ignite is a distributed system and its data needs to be consistent across all its nodes. Getting a snapshot of a single volume or even all the volumes connected to a pod is not sufficient.</p> <p>Instead, try to use the built-in tools. Ignite recently got the <a href...
Stephen Darlington
<p>Copied from here: <a href="https://github.com/kubeflow/pipelines/issues/7608" rel="nofollow noreferrer">https://github.com/kubeflow/pipelines/issues/7608</a></p> <p>I have a generated code file that runs against Kubeflow. It ran fine on Kubeflow v1, and now I'm moving it to Kubeflow v2. When I do this, I get the fol...
aronchick
<p>Turns out it has to do with not compiling with the right execution mode on.</p> <p>If you're getting this, your code should look like this.</p> <pre><code>Compiler(mode=kfp.dsl.PipelineExecutionMode.V2_COMPATIBLE).compile(pipeline_func=root_module.root, package_path=str(package_yaml_path)) </code></pre>
aronchick
<p>Is it possible to programatically set the sourcetype to be the namespace from where the logs were generated? I am using the fluentd plugin to send data to the Splunk http event collector. Elsewhere, it was recommended to use ${record['kubernetes']['namespace_name'] to set the index name to be the namespace name. ...
trouphaz
<p>If you have not defined a <code>sourcetype</code> in an appropriate <code>props.conf</code> (and associated <code>transforms.conf</code>), Splunk will try to determine the sourcetype based on heuristics</p> <p>Those heuristics are not generally very accurate on custom data sources</p> <p>Instead of trying to &quot;p...
warren
<p>Is there a way to connect C# Thick Client running in the Windows Machine outside of the Kubernetes with Apache Ignite Cluster nodes are present in the Kubernetes.</p> <p>Below specified article says it is not possible but this article was written in 2020. We are looking for Scenario-3 from below article <a href="htt...
Rameish
<p>The recommendation here would be to use the thin-client. The .net thin-client does have the data streamer API.</p> <p>There is no straight-forward way to connect a thick-client node from outside Kubernetes to a cluster inside it.</p>
Stephen Darlington
<p>I'm working locally (within Docker for Mac) on a Kubernetes cluster that will eventually be deployed to the cloud. We plan to use a database service in that environment. To simulate that, I'd like to have the services in the cluster connect to a database running outside the cluster on my laptop.</p> <p>Can I do that...
Nathan Long
<p>After talking with some colleagues, I found a solution.</p> <p>In Docker for Mac, <code>host.docker.internal</code> points to the host machine, and that lets me connect to the db running there, even from containers running in the K8s cluster.</p>
Nathan Long
<p><strong>Background</strong></p> <p>On the Google Kubernetes Engine we've been using Cloud Endpoints, and the Extensible Service Proxy (v2) for service-to-service authentication.</p> <p>The services authenticate themselves by including the bearer JWT token in the <code>Authorization</code> header of the HTTP requests...
Mark Vincze
<p>To get an IdToken for the attached service account, you can use <code>GoogleCredential.GetApplicationDefault().GetOidcTokenAsync(...)</code>.</p>
Johannes Passing
<p>In Kubernetes, when a Pod repeatedly crashes and is in <code>CrashLoopBackOff</code> status, it is not possible to shell into the container and poke around to find the problem, due to the fact that containers (unlike VMs) live only as long as the primary process. If I shell into a container and the Pod is restarted,...
Nathan Long
<h2>Redefine the <code>command</code></h2> <p>In <strong>development only</strong>, a temporary hack to keep a Kubernetes pod from crashing is to redefine it and <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/" rel="noreferrer">specify the container's <code>command</...
Nathan Long
<p>I have a hard requirement to use a single ELB Classic (CLB) load balancer. Can a single ELB Classic (CLB) distribute traffic between two different Auto Scaling Groups, both running the same application code with no special path based routing needed from an ALB (Application Load Balancer).</p> <p>For example, in a hi...
user791134
<p>A single classis ELB cannot have multiple ASGs associated with it, but the newer Application Load Balancer can do this.</p>
chris
<p>I'm following <a href="https://cloud.google.com/python/django/kubernetes-engine" rel="nofollow noreferrer">the tutorial on how to deploy a Django application to the Kubernetes Engine</a> in the Google Cloud Platform and on step 9 it does this:</p> <blockquote> <ol start="9"> <li><p>Retrieve the public Docker im...
Pablo Fernandez
<p>I'm sure some other people that actually understand Kubernetes, Docker and GCP will chip in with better answers, but I wanted to drop in what I've learned so far in case others arrived here with the same question.</p> <blockquote> <p>What is this Cloud SQL proxy image?</p> </blockquote> <p>That is a Docker image...
Pablo Fernandez
<p>I was trying to reduce the production of logs in splunk. when i tried to reduce the logs by using below query i was getting a large number of log entries</p> <pre><code>Spunk query: (source!=&quot;/var/log/kubernetes/audit/kube-apiserver-audit.log&quot; cluster_name::dkp-test index=&quot;tst-dkp&quot;) null sourcety...
Sayon
<p>The only way to &quot;reduce the production of logs&quot; going into Splunk is to not log as much that the Universal Forwarder picks up, or that is sent via the HTTP Event Collector</p> <p>If you want to <em>filter</em> events based on criteria in your SPL, then you need to look at the field(s) in question, and only...
warren
<p><a href="https://i.stack.imgur.com/szaBC.png" rel="nofollow noreferrer">enter image description here</a></p> <p><code>Operation failed. Check pod logs for install-runner for more details.</code></p> <p>I am getting this error while trying to install GitLab runner. What I have done so far</p> <ul> <li>successfully in...
Meshu Deb Nath
<p>Warning, with GitLab 13.11 (April 2021):</p> <blockquote> <h2><a href="https://about.gitlab.com/releases/2021/04/22/gitlab-13-11-released/#one-click-gitlab-managed-apps-will-be-removed-in-gitlab-14.0" rel="nofollow noreferrer">One-click GitLab Managed Apps will be removed in GitLab 14.0</a></h2> <p>We are deprecatin...
VonC
<p>I am currently using Kubernetes Python SDK to fetch relevant information from my k8s cluster. I am running this from outside the cluster.</p> <p>I have a requirement of fetching the images of all the POD's running within a namespace. I did look at Docker python SDK but that requires me to be running the script on t...
Rakshith Venkatesh
<blockquote> <p>that requires me to be running the script on the cluster itself</p> </blockquote> <p>No, it should not: the <a href="https://github.com/kubernetes-client/python" rel="nofollow noreferrer">kubernetes-client python</a> performs operations similar to <strong><a href="https://kubernetes.io/docs/reference...
VonC
<p>I have a Kubernetes v1.10.2 cluster and a cronjob on it. The job config is set to:</p> <pre><code> failedJobsHistoryLimit: 1 successfulJobsHistoryLimit: 3 </code></pre> <p>But it has created more than ten jobs, which are all successful and not removed automatically. Now I am trying to delete them manually, wit...
Michael.Sun
<p>Check if <code>kubectl describe pod &lt;pod name&gt;</code> (associated pod of the job) still returns something, which would:</p> <ul> <li>mean the node is still there</li> <li>include the <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions" rel="nofollow noreferrer">pod condit...
VonC
<p>I have an application that gets deployed from a docker image to a Kubernetes pod. Inside of my docker image I run the following command</p> <pre><code>FROM openjdk:17.0.1-slim USER root WORKDIR /opt/app ARG JAR_FILE ARG INFO_APP_BUILD RUN apt-get update RUN apt-get install -y sshpass RUN apt-get install -y openss...
wowza_MAN
<blockquote> <p>When the application gets deployed, out of my control, the user gets set to a non root user.</p> </blockquote> <p>Inside the container, the user running <code>java -jar /opt/app/app.jar</code> is root, because of <code>USER root</code>.</p> <p>Outside the container, on the host, a deployed application i...
VonC
<p>I have a simple website running in my Kubernetes cluster and exposed to the Internet using Traefik. My Ingress object looks like this (the only things I've changed here are the name and domain names):</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: networking.k8s.io/v1 kind: Ingress metadata: ann...
soapergem
<p>I figured it out, by port-forwarding to the Traefik Dashboard and looking at the service there. It was showing an error for the middleware not found. I then clicked over to the middlewares and realized that they end up with a longer canonical name. So in my annotation I had to change the reference from <code>my-cool...
soapergem
<p>I am using Clair for Vulnerability checks in my harbor.</p> <p>Services like Clair that have thousands of hosts continually hitting the hosting git server(<a href="https://git.launchpad.net/ubuntu-cve-tracker/" rel="nofollow noreferrer">https://git.launchpad.net/ubuntu-cve-tracker/</a>) saturate the server, and so t...
Anvesh Muppeda
<p>Check first if this is linked to <a href="https://github.com/goharbor/harbor/issues/14720" rel="nofollow noreferrer"><code>goharbor/harbor</code> issue 14720</a>: &quot;clair restarts repeatedly when there is some issue with vulnerability repos&quot;, with logs like</p> <pre class="lang-golang prettyprint-override">...
VonC
<p>I am using docker to run my java war application and when I run the container I got this exception <strong>java.net.BindException: Address already in use</strong> .</p> <p>The container expose port 8085 (8080-&gt;8085/tcp) I executed this command to run the docker container :</p> <blockquote> <p>docker run -p 8080:8...
Y.hadj.younes
<p>The <code>ps</code> shows <em>two</em> java processes, possibly running Tomcat.</p> <p>Since they would be running with the same parameters, including ports, it seems expected the second process fails with</p> <pre><code>java.net.BindException: Address already in use </code></pre> <p>Make sure to <code>docker stop</...
VonC
<p>I have an app running in a kubernetes managed docker container, using Azure Kubernetes Service (AKS). I can output logs to a text file for the app deployment using:</p> <pre><code>kubectl logs deployment/my-deployment &gt; out.txt </code></pre> <p>This gives me a file of around max 28Mb. When I get the docker logs f...
Chris Halcrow
<p><a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#logs" rel="nofollow noreferrer"><code>Kubectl logs</code></a> might read logs with a default log rotation, meaning the <a href="https://stackoverflow.com/a/39398892/6309">logrotate service is active</a>.</p> <p>Check the content of cat ...
VonC
<p>I've placed a docker compose file <strong>project.yaml</strong> at the location /etc/project/project.yaml</p> <p>the file and well as the project directory have the same file permission, i.e. -rxwrxxrwx but when I run docker-compose</p> <pre><code>sudo docker-compose -f ./project.yaml up -d </code></pre> <p>if error...
Simple Fellow
<p>Beside using the full path, as <a href="https://stackoverflow.com/questions/73500671/docker-compose-cannot-find-the-yaml-file#comment129801726_73500671">commented</a> by <a href="https://stackoverflow.com/users/14312225/quoc9x">quoc9x</a>, double-check your current working directory when you call a command with a re...
VonC
<p>When deploying the app, certain environment-specific settings need to be applied to the server.xml, which cannot be applied when the container is built. Has anyone tried using a volume_mounted config file, and where would I tell tomcat the location of this custom config?</p>
Mark Jaffe
<p>To illustrate <a href="https://stackoverflow.com/users/19246531/nataraj-medayhal">Nataraj Medayhal</a>, you can find an example based on configMap on <a href="https://github.com/devlinx9/k8s_tomcat_custer" rel="nofollow noreferrer"><code>devlinx9/k8s_tomcat_custer</code></a></p> <blockquote> <p>The configMap is used...
VonC
<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>...
Arghya Roy
<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"...
VonC
<p>I have a spring-boot application running over Kubernetes, Now I am trying to set up a horizontal pod auto scaler.</p> <p>I have one doubt, without modifying any autoscalar thresholds, does auto scaler check pods only when they are ready(after the readiness probe succeeds) or even when readiness is not complete.</p> ...
Ankit Bansal
<p>A <a href="https://github.com/jthomperoo/predictive-horizontal-pod-autoscaler" rel="nofollow noreferrer">Digital OCean Predictive Horizontal Pod Autoscaler</a> has the same kind of parameter: <a href="https://predictive-horizontal-pod-autoscaler.readthedocs.io/en/latest/reference/configuration/#cpuinitializationperi...
VonC
<p>I am not able to attach to a container in a pod. Receiving below message Error from server (Forbidden): pods "sleep-76df4f989c-mqvnb" is forbidden: cannot exec into or attach to a privileged container</p> <p>Could someone please let me what i am missing?</p>
chilu
<p>This seems to be a permission (possibly <a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/" rel="nofollow noreferrer">RBAC</a>) issue.<br> See <a href="https://kubernetes.io/docs/concepts/policy/pod-security-policy/" rel="nofollow noreferrer">Kubernetes pod security-policy</a>.</p> <p>For instan...
VonC
<p>So I am running Django App in kubernetes pod at when trying to save an image file:</p> <pre><code>img_obj.image.save(img_file, File(img_file_org)) </code></pre> <p>I am getting no space left error:</p> <pre><code> File &quot;/code/ocr_client/management/commands/pdf_to_image.py&quot;, line 126, in handle img_obj...
Alex T
<p>If you are getting the &quot;<code>No space left on device</code>&quot; error even when the disk usage and inode usage are low, it might be that the disk resources for your specific pod are limited. The Kubernetes system can set limits on resources like CPU, memory, and disk storage.</p> <p>So start with checking th...
VonC
<p>I have node.js application that I need to deploy to exising kubernetes cluster.</p> <p>The cluster is setup using <code>kops</code> on AWS.</p> <p>I have created <code>.gitlab-ci.yml</code> file for building docker images.</p> <p>So, whenever a change is pushed to either <code>master</code> or <code>develop</code> b...
confusedWarrior
<blockquote> <p>I suggest using Flux for deploying rather than invoking kubectl as part of the pipeline,</p> </blockquote> <p>That would be true because:</p> <ul> <li><p>the traditional <a href="https://docs.gitlab.com/ee/user/clusters/agent/gitops/agent.html" rel="nofollow noreferrer">GitOps with the agent for Kuberne...
VonC
<p>I have a couple of client applications. For each one I have a build pipeline that gets latest code, compiles it and plots the result to a <code>dist</code> folder (containing only html and js files).</p> <p>These <code>dist</code> folders are synced, using docker volume, to a web server (<code>nginx</code>) contain...
Mugen
<p>You could consider a <a href="https://docs.docker.com/develop/develop-images/multistage-build/" rel="nofollow noreferrer">multi-stage build</a> with:</p> <ul> <li>the first stage being the build of your web server (which never change, so it is cached)</li> <li>the second stage being the build of your dist folder, t...
VonC
<p>Currently, I have two microservices. I want to send message to KubeMQ Queue from first microservice and want it to be received by Second microservice. I am able to send message to a KubeMQ Queue using below code:</p> <pre><code>Queue queue = new Queue(&quot;QueueName&quot;, &quot;ClientID&quot;, &quot;localhost:5000...
Abhi
<blockquote> <p>I need a Listener in the second microservice in order to receive the message from Queue.</p> </blockquote> <p>Why polling, when you can be notified through the <a href="https://docs.kubemq.io/learn/message-patterns/pubsub" rel="nofollow noreferrer">KubeMQ Pub/Sub pattern</a>?</p> <p><a href="https://i.s...
VonC
<p>Hi I am at a loss when it comes to configuring OIDC (Keycloak) with MinIO (both are deployed on same AKS cluster). I have configured an Ingress for both, both use the same wildcard cert that I got from DigiCert. However, whenever I got to configure OIDC (either via Helm values or manually in the console) I get the f...
user1314147
<p>Since you have an error &quot;<code>TLS: failed to verify certificate: x509: certificate signed by unknown authority</code>&quot;, that should mean that the certificate used by the Keycloak server is not trusted by the system where MinIO and ArgoCD are running.</p> <p>You should make sure the certificate authority (...
VonC
<p>I tried following the instructions from the official documentation page of &quot;<strong>Operator SDK</strong>&quot;. The device I'm trying to install it on is running on Windows 10, AMD64. I installed GNU Make via Chocolatey.</p> <pre><code> make --version GNU Make 4.4.1 Built for Windows32 Copyright (C) 1988-2023 ...
ERJAN
<p>I see there are several lines where Go is complaining about a type mismatch. Specifically, it is mentioning that <code>syscall.Filetime</code> cannot be used as <code>&quot;golang.org/x/sys/windows&quot;.Filetime</code>.</p> <pre><code>..\..\..\go\pkg\mod\github.com\containerd\containerd@v1.4.11\archive\tar_windows....
VonC
<p>i am trying to create a Kubernetes cluster with the intention of hosting a docker registry, but after installing kubectl (via homebrew on Mac) along with minikube i am getting <code>The connection to the server localhost:8080 was refused - did you specify the right host or port?</code> when i run <code>kubectl versi...
Tom Williams
<p><a href="https://discuss.kubernetes.io/t/the-connection-to-the-server-localhost-8080-was-refused-did-you-specify-the-right-host-or-port/1464/9" rel="nofollow noreferrer">This thread</a> mentions:</p> <blockquote> <p>That error should only come up if you have no contexts configured in your client.<br /> If you run <c...
VonC
<p>I'm facing an issue with <a href="https://github.com/oauth2-proxy/manifests/tree/main/helm/oauth2-proxy" rel="nofollow noreferrer">oauth2 proxy</a> and Ingress Nginx (with the latest versions) in a Kubernetes cluster where the <code>X-Auth-Request</code> headers are not being passed through to the client during the ...
Daniel Taub
<p>You do have a <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/#the-ingress-resource" rel="nofollow noreferrer">Kubernetes Ingress resource</a> that manages external access to the services in your cluster. That is typically defined in a YAML file and applied to your Kubernetes cluster using <...
VonC
<p>I was trying to create a namespace using <code>kubectl</code>, but I got this error:</p> <blockquote> <p>Error from server (Forbidden): error when creating "namespacefoo": namespaces is forbidden: User "xyz@pqr.com" cannot create namespaces at the cluster scope</p> </blockquote> <p>Is there a concept of "scope" ...
Ufder
<p>That depends on your Kubernetes environment.</p> <p>This <a href="https://stackoverflow.com/a/49094802/6309">answer suggest</a> (in a <a href="https://cloud.google.com/" rel="nofollow noreferrer">Google Cloud environment</a>):</p> <blockquote> <p>That suggests that <code>gcloud config set container/use_client_certif...
VonC
<p>i am trying deploy a simple python flask application in digital ocean Kubernetes cluster using below deployment and service configuration. flask app is using 8080 port while running the code and same is used to expose through load balancer.</p> <p>flask app</p> <pre><code> if __name__ == '__main__': app.r...
Maria628
<p>Just in case this is part of your issue, your Service's selector does not match your Deployment's label.<br /> The selector in your service should match the labels in your deployment to establish the correct connection.</p> <p>In your Deployment:</p> <pre class="lang-yaml prettyprint-override"><code>apiVersion: apps...
VonC
<p>I have setup a kubernetes cluster with 2 <code>master</code> nodes and 4 <code>worker nodes</code>, I am trying to do an etcd backup as described in the documentation inside my etcd container.</p> <pre><code>‍ETCDCTL_API=3 etcdctl --endpoints=https://127.0.0.1:2379 \ --cacert=&lt;trusted-ca-file&gt; --cert=&lt;cer...
pwoltschk
<p>Check first if this is similar to <a href="https://stackoverflow.com/q/70906419/6309">this question</a></p> <blockquote> <p>I forgot to set <code>$ENDPOINT</code>.</p> </blockquote> <p>That can happen if the <code>--endpoints</code> flag is not correctly followed by an actual endpoint.<br /> In your case, because of...
VonC
<p><a href="https://i.stack.imgur.com/IOowW.png" rel="nofollow noreferrer">looks like this</a> using windows version 10, docker for windows(docker verion) : 18.09.2</p> <p>how to resolve this issue ?</p>
PRUDHVI CHOWDHARY NEKKALAPUDI
<p>Kubernetes should be running.</p> <p>But check your cluster-info:</p> <pre><code>&gt; kubectl cluster-info Kubernetes master is running at http://localhost:8080 To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. Unable to connect to the server: dial tcp [::1]:8080: connectex: No connec...
VonC
<p>I use <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">Ingress-nginx</a> and I need to rewrite the <code>Host</code> header sent to the proxied Kubernetes Service based on the <code>path</code> of the original request. This must happen based on some variable or regular expression. I ca...
nichoio
<blockquote> <p>without any <code>snippet</code> annotation</p> </blockquote> <p>Then... considering <a href="https://github.com/kubernetes/ingress-nginx/blob/main/rootfs/etc/nginx/lua/plugins/README.md" rel="nofollow noreferrer">NGINX Ingress annotation snippets contain LUA code execution</a> (which can be <a href="ht...
VonC
<p>I'm new to DevOps specifically using golang and microservice architecture.</p> <p>I'm wondering if go applications should or should not be deployed in containers (Docker). In this case, I have a system built with micro-service architecture. For example here, I have 2 web services, A and B. Also, I have another web s...
gregory112
<blockquote> <p>I'm wondering if go applications should or should not be deployed in containers (Docker)<br> Why should I deploy and run those binaries inside containers like Docker?</p> </blockquote> <p>Of course, provided you separate the build from the actual final image (in order to not include in said final i...
VonC
<p>is it possible to chain requests through multiple backends with the new <a href="https://gateway-api.sigs.k8s.io/" rel="nofollow noreferrer">https://gateway-api.sigs.k8s.io/</a> ?</p> <p>The idea is to have a flow depending on the response headers of each service ie:</p> <p>Request -&gt; Gateway -&gt; [ first backen...
Leonel Franchelli
<p>In the context of the <a href="https://gateway-api.sigs.k8s.io/" rel="nofollow noreferrer">Kubernetes Gateway API</a>, it is generally designed to manage <em>inbound</em> request traffic effectively through various kinds of Gateways, such as HTTPRoute, TCPRoute, etc.</p> <p>This question is more about managing east/...
VonC
<p>I have downloaded the kubernetes from GitHub and now I want to run it from the downloaded file not from GitHub. Could you please help me? </p>
HamiBU
<p>You can follow:</p> <ul> <li>"<a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/" rel="nofollow noreferrer">Assign Memory Resources to Containers and Pods</a>"</li> <li>"<a href="https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/" rel="nofollow noref...
VonC
<p>Under Linux it's possible to read the control file <code>memory.usage_in_bytes</code> <a href="https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt" rel="nofollow noreferrer">for Control Group v1</a> or <code>memory.current</code> for <a href="https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.htm...
Christian Ammer
<blockquote> <p>I would like to determine the memory usage from a C++ program</p> </blockquote> <p>To expand on <a href="https://stackoverflow.com/users/15511041/yangxiaopo-msft">YangXiaoPo-MSFT</a>'s <a href="https://stackoverflow.com/questions/76849219/how-to-retrieve-the-memory-usage-of-a-windows-container#comment13...
VonC
<p>I have a kubernetes pod which is based on spring boot. Locally I can start jar file with external file with this commands:</p> <pre><code>java -jar app.jar --spring.config.location=file:///Users/home/config/application.yml </code></pre> <p>But how to do it in kubernetes? I use Helm charts for configuration. Is there...
Peter Penzov
<blockquote> <p>&quot;Locally, I can start jar file with external file with that command: <code>java -jar app.jar --spring.config.location=file:///Users/home/config/application.yml</code>. But how to do it in kubernetes?&quot;.</p> </blockquote> <p>In a Kubernetes environment..., you would <em>not</em> directly execut...
VonC
<p>When I want to generate yaml by running <code>kubectl</code>, it denotes that I should denote <code>--generator=something</code> flag within the command.</p> <p>For example, to get the deployment template via <code>kubectl</code>, I should run the below command:</p> <pre><code>kubectl run --generator=deployment/v1...
Farshid
<p>That was introduced in <a href="https://github.com/kubernetes/kubernetes/commit/426ef9335865ebef43f682da90796bd8bf976637" rel="noreferrer">commit 426ef93</a>, Jan. 2016 for Kubernetes v1.2.0-alpha.8.</p> <p><a href="https://github.com/kubernetes/kubernetes/blob/426ef9335865ebef43f682da90796bd8bf976637/docs/devel/ku...
VonC
<p>I have two containers,maybe A and B, which A should run before B, but A is a server application, which the final type is Running but not Complete, so I wonder in this way, will B be never executed? So how can I deal with it?</p>
edselwang
<p>If A and B are part of the same pod, then <a href="https://kubernetes.io/docs/concepts/workloads/pods/init-containers/" rel="nofollow noreferrer">initContainer</a> is the legacy way to establish ordering.</p> <p>From the <a href="https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-states" re...
VonC
<p>So I am having an issue with prefect-server UI connecting to my API within my kubernetes environment. I am using a nginx as my ingress.</p> <p>I have my ingress configuration for the prefect-server service as so:</p> <pre><code>https://myhost.com/prefect/ -&gt; http://localhost:3000/api </code></pre> <p>I am able to...
cozzymotto
<p>Double-check the <a href="https://docs.prefect.io/2.10.20/concepts/settings/#prefect_api_url" rel="nofollow noreferrer"><code>PREFECT_UI_API_URL</code></a> in your <code>prefect-server</code> deployment.<br /> This variable is used by the Prefect UI to understand where to find the API.</p> <p>However, using &quot;<c...
VonC
<p>I have a few questions regarding the configMap versioning.</p> <ol> <li><p>Is it possible to use a specific version of a configMap in the deployment file?</p> </li> <li><p>I don't see any API's to get list of versions. How to get the list of versions?</p> </li> <li><p>Is it possible to compare configMap between vers...
user1578872
<blockquote> <p>Is it possible to use a specific version of a configMap in the deployment file?</p> </blockquote> <p>Not really.<br> The closest notion of a "version" is resourceVersion, but that is not for the user to directly act upon.</p> <p>See <a href="https://github.com/kubernetes/community/blob/master/contri...
VonC
<h1>How to deploy dash/flask applications on kubernetes</h1> <p>I have developed a dash application consisting of three main components:</p> <ol> <li>A python backend script</li> <li>A flask webserver</li> <li>A dash frontend</li> </ol> <p>The backend fetches data from a web API and POSTs it to various webserver endpoi...
Yoda
<p>You probably ran your <a href="https://flask.palletsprojects.com/en/2.3.x/tutorial/factory/" rel="nofollow noreferrer">Flask app</a> directly with the Flask built-in server:</p> <pre class="lang-py prettyprint-override"><code>if __name__ == &quot;__main__&quot;: app.run(host='0.0.0.0') </code></pre> <p>You shoul...
VonC
<p>I am trying to run a kubernetes cluster on mac os for some prototyping using docker (not vagrant or virtualbox). </p> <p>I found the instructions online at <a href="https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/getting-started-guides/docker.md" rel="nofollow noreferrer">https://github.com/kubernete...
user674669
<p>Since 2015, everything has been move to the <a href="https://github.com/kubernetes/website" rel="nofollow noreferrer">Kubernetes website GitHub repo</a>.</p> <p>The full installation/process page is now at <a href="https://kubernetes.io/docs/tasks/" rel="nofollow noreferrer"><code>kubernetes.io/docs/tasks/</code></...
VonC
<p>I am using clickhouse database and data are stored at <code>/media/user/data/clickhouse</code> and <code>/media/user/data/clickhouse-server</code>. When I run a docker container</p> <pre><code>$ docker run \ --name local-clickhouse \ --ulimit nofile=262144:262144 \ -u 1000:1000 \ -p 8123:8123 \ -...
MoneyBall
<p>Check first the data at <code>/media/user/data/clickhouse</code> and <code>/media/user/data/clickhouse-server</code> on your host machine indeed contains the expected ClickHouse data.</p> <p>And remember that, when you use Minikube, it typically runs in a virtual machine (like VirtualBox). It means the <code>hostPat...
VonC
<p>I am trying to setup a spark cluster on k8s. I've managed to create and setup a cluster with three nodes by following this article: <a href="https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/" rel="noreferrer">https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/</a></p> <p>After t...
garfiny
<p>The error message comes from <a href="https://github.com/apache/spark/commit/5d7c4ba4d73a72f26d591108db3c20b4a6c84f3f" rel="noreferrer">commit 5d7c4ba4d73a72f26d591108db3c20b4a6c84f3f</a> and include the page you mention: "<a href="https://spark.apache.org/docs/latest/running-on-kubernetes.html#dependency-management...
VonC
<p>I'm running a Nextflow workflow using the Kubernetes executor in a shared cluster that cannot allow privileged containers for security reasons.</p> <p>When I run my nextflow workflow I get the error that clearly indicates that it's attempting to run my job in privileged mode:</p> <pre><code>job-controller Error cre...
David Parks
<p>In the <a href="https://www.nextflow.io/docs/latest/executor.html#k8s-executor" rel="nofollow noreferrer">Nextflow's Kubernetes executor</a>, you have the ability to control the security context of the pods that are created.</p> <p>You need to correctly specify the security context in such a way that it applies to t...
VonC
<p>I am trying to understand the Gitlab K8s agent. But it looks like it requires the developer to commit changes to a manifest file before it can deploy them to K8s. This is a challenge when trying to do auto deploys using Gitlab pipelines because those pipelines run after the commit. So how is the user supposed to cre...
crossvalidator
<p>Note that the traditional <a href="https://docs.gitlab.com/ee/user/clusters/agent/gitops/agent.html" rel="nofollow noreferrer">GitOps with the agent for Kubernetes</a> has been deprecated with GitLab 16.2 (July 2023), and <a href="https://docs.gitlab.com/ee/user/clusters/agent/gitops.html" rel="nofollow noreferrer">...
VonC
<p>We have been happily using ArgoCD with public repositories for a while, but we've run into problems trying to connect ArgoCD to a private repository. We have an <code>Application</code> that looks like this:</p> <pre><code>apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: example-app namespace: ...
larsks
<p>You can review possible causes from <a href="https://github.com/argoproj/argo-cd/issues/1172" rel="nofollow noreferrer"><code>argoproj/argo-cd</code> issue 1172</a></p> <p>Since you have the proper URL (<code>ssh://git@github.com/...</code>, as requested by <a href="https://github.com/operate-first/argocd-apps/pull/...
VonC
<p>I am serving jupyter notebook through a Kubernetes cluster. And I've set <code>resources.limits</code> to prevent someone from draining all of the host servers memory. </p> <p>While one problem is that the jupyter notebook kernels after crash and automatic restart they do not throw any OOM errors after the containe...
aisensiy
<p>If you have only one specific pod, you can monitor the events/logs, <a href="https://stackoverflow.com/a/38270491/6309">as in here</a>:</p> <pre><code>kubectl get events --watch kubectl logs -f podname </code></pre> <p>That being said, not <em>all</em> events in a <a href="https://kubernetes.io/docs/concepts/work...
VonC
<p>I know continuous deployment can be done via spinnaker like Blue/Green, Canary Deployment etc but my question how does it differ from other GitOps tools like WeaveWorks Flux ? Does both solve the same problem ? or Do we need both tools in conjunction ? </p>
srikanth
<p>As mentioned in &quot;<a href="https://www.weave.works/blog/the-gitops-pipeline" rel="nofollow noreferrer">The GitOps Pipeline - Part 2</a>&quot;</p> <blockquote> <p><strong><a href="https://www.weave.works/oss/flux/" rel="nofollow noreferrer">Weave Flux</a></strong> is a tool that automates the staging and release ...
VonC
<p>If there is an update in the docker image, rolling update strategy will update all the pods one by one in a daemonset, similarly is it possible to restart the pods gracefully without any changes the daemonset config or can it be triggered explicitly?</p> <p>Currently, I am doing it manually by</p> <p><code>kubectl...
zillani
<p>You could try and use <a href="https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#maintenance-on-a-node" rel="nofollow noreferrer">Node maintenance operations</a>:</p> <blockquote> <p>Use kubectl drain to <strong>gracefully terminate all pods on the node</strong> while marking the node as uns...
VonC
<p>I'm trying to install Gitlab Runner inside my cluster in Azure Kubernetes Service (AKS), but I have 2 errors:</p> <ol> <li><p>Helm Tiller doesn't appear in the application list of Gitlab CI: Most of tutorials tell that it has to be installed, but today it is not even proposed as you can see here: <a href="https://i....
Elias Arellano
<p>GitLab 13.12 (May 2021) does clearly mention:</p> <blockquote> <h2><a href="https://about.gitlab.com/releases/2021/05/22/gitlab-13-12-released/#helm-v2-support" rel="nofollow noreferrer">Helm v2 support</a></h2> </blockquote> <blockquote> <p>Helm v2 was <a href="https://helm.sh/blog/helm-v2-deprecation-timeline/" re...
VonC
<p>I am able to install kubernetes using kubeadm method successfully. My environment is behind a proxy. I applied proxy to system, docker and I am able to pull images from Docker Hub without any issues. But at the last step where we have to install the pod network (like weave or flannel), its not able to connect via pr...
ravi karthik bodicherla
<p>When you do work with a proxy for internet access, do not forget to configure the <code>NO_PROXY</code> environment variable, in addition of <code>HTTP(S)_PROXY</code>.</p> <p>See <a href="https://docs.openshift.com/container-platform/3.4/install_config/http_proxies.html#configuring-no-proxy" rel="nofollow noreferr...
VonC
<p>Imagine you want to get kind/struct called <code>KubeadmControlPlane</code> from the kubernetes API server.</p> <p>This means you need to import the related struct into your code.</p> <p>A matching import statement for <code>KubeadmControlPlane</code> would be:</p> <blockquote> <p>kubeadm &quot;sigs.k8s.io/cluster-a...
guettli
<p>In principle, a <code>go get sigs.k8s.io/cluster-api@v1.4.2</code> (done in the folder where your <code>go.mod</code> is) should be enough to:</p> <ul> <li>update your <code>go.mod</code>,</li> <li>add the library in your <code>$GOPATH</code> and</li> <li>enable VSCode auto-import to work.</li> </ul> <p>That means, ...
VonC
<p>I have a war file that I deployed with Tomcat.<br /> I have a Dockerfile and at the end I build a kubernetes pod.</p> <p>The problem is that if my property files from my app do exist in the path: <code>/usr/local/tomcat/webapps/myapp/WEB-INF/classes/config/</code> and not in path <code>/usr/local/tomcat/webapps/myap...
Eugen Gîrlescu
<p>As <a href="https://stackoverflow.com/a/2161583/6309">mentioned here</a>:</p> <blockquote> <p><code>foo.properties</code> is supposed to be placed in one of the roots which are covered by the default classpath of a webapp, e.g. webapp's <code>/WEB-INF/lib</code> and /WEB-INF/classes, server's /lib, or JDK/JRE's /lib...
VonC
<p>Here's the full error <code>Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.</code></p> <p>Here's my Kubectl config view</p> <pre><code>apiVersion: v1 clusters: [] contexts: - context: cluster: "" user: "" name: d...
Alamgir Qazi
<p>Check out "<a href="https://medium.com/@JockDaRock/minikube-on-windows-10-with-hyper-v-6ef0f4dc158c" rel="nofollow noreferrer">Minikube on Windows 10 with Hyper-V</a>" by <a href="https://twitter.com/JockDaRock" rel="nofollow noreferrer">Jock Reed</a></p> <p>The command to run, from a Windows CMD console as Adminis...
VonC
<p>I have Gitlab Kubernetes integration in my <code>Project 1</code> and I am able to access the <code>kube-context</code> within that project's pipelines without any issues.</p> <p>I have another project, <code>Project 2</code> where I want to use the same cluster that I integrated in my <code>Project 1</code>.</p> <p...
HelmBurger
<p><a href="https://about.gitlab.com/releases/2022/12/22/gitlab-15-7-released/#share-cicd-access-to-the-agent-within-a-personal-namespace" rel="nofollow noreferrer">GitLab 15.7</a> (December 2022) suggests an alternative approach, which does not involve creating a new agent per project</p> <blockquote> <h2>Share CI/CD ...
VonC
<p>I need an Akka cluster to run multiple CPU intensive jobs. I cannot predict how much CPU power I need. Sometimes load is high, while at other times, there isn't much load. I guess autoscaling is a good option, which means, example: I should be able to specify that I need minimum 2 and maximum 10 Actors. The cluster ...
Apurva Singh
<p>If you consider a <a href="https://github.com/hseeberger/constructr" rel="nofollow noreferrer">project like <code>hseeberger/constructr</code></a> and its <a href="https://github.com/hseeberger/constructr/issues/179" rel="nofollow noreferrer">issue 179</a>, a native Akka solution should be based on <a href="https://...
VonC
<p>I developed service which listen 0.0.0.0:8080. When I run app local it works and i can connect by browser. I push it in image to dockerhub. By this image I created pod and service in my mini kube cluster. By command &quot;minicube service --url&quot; i get url like 192.168.49.2:30965, but I can't connect to this ur...
Яков Грищенко
<p>You would need, as <a href="https://stackoverflow.com/q/71175415/6309">illustrated here</a> to:</p> <ul> <li>create a <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="nofollow noreferrer">Deployment</a> and apply it</li> <li>then expose the port:<br /> <code>kubectl expose -f lara...
VonC
<p>I have search the Helm documentation and this forum as well as others and see no way to print out or list the environment variables that Helm uses... In the docs it states that you can set env vars with override flags but I see no instructions to list what (if any) environmental vars Helm uses ... </p> <p>I was thi...
Jim_Brent
<p>The support for environment variables was initially discussed in <a href="https://github.com/kubernetes/helm/issues/944" rel="nofollow noreferrer">helm issue 944</a>, and implemented in <a href="https://github.com/kubernetes/helm/pull/982" rel="nofollow noreferrer">PR 982</a> for Helm 2.0 in July 2016.</p> <p><a hr...
VonC
<p>Popular version control servers (like github) are likely having an immense amount of traffic and need a scalable &amp; durable data storage. I was wondering how is this implemented in the background. </p> <p>I have few guesses/assumptions on how it works but I'm not sure if they are 100% accurate:</p> <ul> <li>Rep...
ozgeneral
<p>No need to rely on guesses.</p> <p>For GitHub specifically, the <a href="https://githubengineering.com/" rel="noreferrer">githubengineering blog</a> details what they had to use in order to scale to their current usage level.</p> <p>Beside upgrading Rails or removing JQuery, on the frontend side, they have:</p> <...
VonC
<p>I'm currently learning Kubernetes as part of a project and facing a small hurdle which I hope you guys can help me in crossing.</p> <p>The ask is to build a docker application that can be accessed over the internet by anyone anywhere. Below are the steps I followed.</p> <ol> <li>I'm using Windows laptop</li> <li>I u...
TechEnthu
<p>First, make sure your network mode for your VMWare is &quot;bridge&quot; (<a href="https://stackoverflow.com/a/33814957/6309">as in here, for VirtualBox</a>, but the same idea applies to VMWare Player)</p> <p>Then you can use <strong><a href="https://ngrok.com/" rel="nofollow noreferrer">ngrok</a></strong> (as descr...
VonC
<p>Microk8s is installed on default port 16443. I want to change it to 6443. I am using Ubuntu 16.04. I have installed microk8s using snapd and conjure-up.</p> <p>None of the following options I have tried worked.</p> <ol> <li>Tried to edit the port in <code>/snap/microk8s/current/kubeproxy.config</code>. As the volu...
Srinivasa Rao
<p>That was initially resolved in <a href="https://github.com/ubuntu/microk8s/issues/43#issuecomment-434383633" rel="noreferrer">microk8s issue 43</a>, but detailed in <a href="https://github.com/ubuntu/microk8s/issues/300#issuecomment-476995716" rel="noreferrer">microk8s issue 300</a>:</p> <blockquote> <p>This is t...
VonC
<p>I want my pods to be gracefully recycled from my deployments after certain period of time such as every week or month. I know I can add a cron job for that if I know the Kubernetes command. </p> <p>The question is what is the best approach to do this in Kubernetes. Which command will let me achieve this goal?</p> ...
rayhan
<p>As the <a href="https://stackoverflow.com/users/1527879/rayhan">OP rayhan</a> has <a href="https://stackoverflow.com/a/53947838/6309">found out</a>, and as commented in <a href="https://github.com/kubernetes/kubernetes/issues/13488#issuecomment-446101458" rel="noreferrer"><code>kubernetes/kubernetes</code> issue 134...
VonC
<p>I'm starting in Kubernetes and I'm trying to update the Image in DockerHub that is used for the Kubernetes's Pod creation and then with <code>kubectl rollout restart deployment deploymentName</code> command it should pull the newest image and rebuild the pods. The problem I'm facing is that it only works when I spec...
Vincenzo
<p>You can use <a href="https://github.com/ryandaniels/docker-script-find-latest-image-tag/blob/aed09da3813429cbe979e34a050a48c3b19a7002/docker_image_find_tag.sh" rel="nofollow noreferrer"><code>docker_image_find_tag.sh</code></a> to check if your image has a <code>latest</code> tag or not.<br /> It will show the tag/v...
VonC
<p>I have configured the following ingress for traefik but traefik is sending the entire traffic to app-blue-release. Ideally it should send only 30% traffic to blue and 70% traffic to green, but it's not working as per expectation.</p> <pre><code>apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: ...
nagendra547
<p>That seems to be followed by <a href="https://github.com/containous/traefik/issues/4494" rel="nofollow noreferrer">traefik issue 4494</a> (instead of your own <a href="https://github.com/containous/traefik/issues/4940" rel="nofollow noreferrer">issue 4940</a>)</p> <blockquote> <p>the annotation <code>ingress.kube...
VonC
<p>I'm looking to find a way to write a scaler for my application which is running on Minikube to scale it up and down based on Time Stamps. Any idea?</p>
ahmokhtari
<p>That would be an <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/" rel="nofollow noreferrer">Horizontal Pod Autoscaler</a> (see its <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/" rel="nofollow noreferrer">Walkthrough here</a>), whic...
VonC
<p>I checked the pods in the kube-system namespace and noticed that some pods share the same ip address.The pods that share the same ip address appear to be on the same node.</p> <p><a href="https://i.stack.imgur.com/OSiy0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OSiy0.png" alt="enter image descriptio...
edmamerto
<p>This was reported in <a href="https://github.com/kubernetes/kubernetes/issues/51322" rel="noreferrer">issue 51322</a> and can depend on the <a href="https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/" rel="noreferrer">network plugin</a> you are using.</p> <p>The issue was see...
VonC
<p>We are using <a href="https://github.com/uber/kraken" rel="nofollow noreferrer">Uber Kraken</a> to increase container download speeds in a kubernetes cluster, it works great.</p> <p>However, we commonly mutate tags (upload a new version of <code>:latest</code>). In the <a href="https://github.com/uber/kraken#limitat...
David Parks
<p>This sentence comes from <a href="https://github.com/uber/kraken/pull/61/files" rel="nofollow noreferrer">PR 61</a>.</p> <p>It offers a better alternative than the previous documentation, which stated:</p> <blockquote> <p>Mutating tags is allowed, however the behavior is undefined.<br /> A few things will go wrong:<...
VonC
<p>In, nomad, we have an env variable named NOMAD_ALLOC_INDEX, that gives me the index of the container, is there a similar env variable in Kubernetes for the pods to get the pod index?</p> <p>Could you please provide your inputs?</p> <p>Thanks, Sarita</p>
Sarita Singe
<p>Not really, unless you are using <a href="https://kubernetes.io/blog/2021/04/19/introducing-indexed-jobs/" rel="nofollow noreferrer">indexed jobs (Kubernetes 1.21, Apr. 2021)</a>.</p> <p>For indexed jobs, the index is exposed to each Pod in the <code>batch.kubernetes.io/job-completion-index</code> annotation and th...
VonC
<p>Small question regarding Kubernetes and how one pod can talk to another pod (two pods in total) when they are in one same namespace, hopefully without a very complex solution.</p> <p>Setup: I have one pod A, called juliette-waiting-for-romeo-tocall, which exposes a rest endpoint <code>/romeo-please-call-me</code></p...
PatPanda
<p>More generally, pod-to-pod communication is documented by &quot;<a href="https://kubernetes.io/docs/concepts/cluster-administration/networking/" rel="nofollow noreferrer">Cluster Networking</a>&quot;</p> <blockquote> <p>Every Pod gets its own IP address.</p> <p>This means you do not need to explicitly create links b...
VonC
<p>I'm trying to figure out, what is import/export best practices in K8S keycloak(version 3.3.0.CR1). Here is keycloak official page <a href="http://www.keycloak.org/docs/2.0/server_admin_guide/topics/export-import.html" rel="nofollow noreferrer">import/export</a> explanation, and they example of export to single file ...
muzafarow
<p>Basically, you just have to start the exporting Keycloak instance on ports that are different from your main instance. I used something like this just now:</p> <p><code>bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=keycloak-export.json -Djbos...
Nikolai Prokoschenko
<h3>TL;DR</h3> <p>java.net.SocketException: Network is unreachable (connect failed) in simple Kubernetes pod that can curl to the internet.</p> <h3>Short Description</h3> <p>I've setup a simple Job object in Kubernetes, which spawns a simple pod to use the Slack-Api to poll for a conversation history via slack.</p> <p>...
Dimitrios
<p>Java does not inherit the proxy settings from the environment.</p> <p>You need to specify the proxy using Java system properties</p> <pre><code>-Dhttp.proxyHost=locahost -Dhttp.proxyPort=9900 </code></pre>
shyam