I am facing an issue with adding customresourcedeployment in aks. Previously, we were using the V1beta1 version which appears to be deprecated now. I have attempted to transition to the v1 version, but encountered a schema validation error. The original V1 ...
My issue involves receiving a connection close header in response when making a GET request, but the connection remains keep-alive for POST requests. My current setup includes an AWS ALB directing traffic to EKS. Within EKS, there is an NGINX ingress rout ...
Currently, I am developing a NodeJS server that has an /events endpoint for sending events to clients using SSE. In addition to this endpoint, there are multiple routes for handling POST requests. I am faced with the challenge of setting up this system so ...
Our team has been facing challenges with the Google Kubernetes Engine (GKE) as regular upgrades to newer versions are causing disruptions in our cluster's pods and containers. While we understand the importance of updates, the issue arises when the cluster ...
kubectl get namespace default Active 3h33m ingress-nginx Active 3h11m kube-node-lease Active 3h33m kube-public Active 3h33m kube-system Active 3h33m kubectl get services -n ingress-nginx NAME ...
Here is my input: { "apiVersion": "apps/v1", "kind": "Deployment", "spec": { "template": { "spec": { "containers": [ { "volum ...
I've encountered a puzzling issue. My next.js app is running in a docker container. It builds successfully on my local Ubuntu machine with minikube and ks8 orchestration, but it gets stuck indefinitely during the build process on the staging setup. The ha ...
My approach involves utilizing the Shelljs and sed command to create a new K8S configuration file shell.exec(`sed -e s%${server}%${endpoint}%g -e s%${certificate}%${cert}%g config-temp`) shell.exec("cat config-temp | tee config") Subsequently, I validate ...
I've developed a NodeJS script to deploy review apps to Kubernetes for my GitLab repository, using the Kubernetes NodeJS client. Including abbreviated definitions of Kubernetes resources for thoroughness: const k8s = require('@kubernetes/client-node'); ...
Currently, I am facing a challenge with processing multiple files in s3 using k8s. To address this, I have set up a job on k8s that consists of around 500 containers, each with different environments. However, the job is running very slowly and has failed ...
https://i.stack.imgur.com/qXcZM.png Dealing with a memory leak in my new web application has proven to be quite challenging. Despite the fact that it did not manifest during local development, every 18 hours, a Kubernetes pod hosting a web client runs out ...
Recently, I created a cluster in gcloud with three nodes. Everything seemed to be going well until I encountered an error while trying to run the pod. Upon investigation, it turned out that my kubectl configuration was not set up correctly. The specific er ...
Recently, I encountered a situation where an interval is set up in Node.js to send periodic emails in a MEAN stack application running on multiple instances in a Kubernetes deployment. However, I noticed that the interval was triggered for all instances ...
When using Python, I am incrementing a Datadog counter: from datadog import initialize from datadog import ThreadStats stats.increment('api.request_count', tags=['environment:' + environment]) I have configured the metric type as "cou ...
Encountering an issue when executing npm run build within a container on Kubernetes during a gitlab-ci job. It's worth noting that npm install, npm run lint, and npm run test all completed without any problems. Error: node@runner-7gbsh-sz-project-9665-con ...
I am currently developing a collaborative whiteboard application that utilizes socket.io to communicate with MongoDB. The backend-service, which is in a separate pod from the whiteboard pod, handles all communication. For example: whiteboard app -> backen ...
I have modified this example from the Jenkins Kubernetes plugin documentation Recently, I set up a basic Jenkins pipeline job and included the groovy script. While Maven successfully fetched all the dependencies, it unexpectedly crashed during the compila ...
I have set up a service in minikube (expressjs API) on my local machine. When I start the service using minikube service wedeliverapi --url, I am able to access it from my browser at localhost:port/api. https://i.stack.imgur.com/Rhm3B.png https://i.stack ...
I've been grappling with this issue for quite some time now: In my standard NextJS app, I'm utilizing environment variables (such as NEXT_PUBLIC_MY_VAR for the client side and MY_OTHER_VAR for the server side). I'm using Gitlab's CI-C ...
I'm currently facing an issue with my setup involving Ingress, Terraform, NGINX, and Kubernetes. It's serving a vue.js frontend and a .NET Core backend successfully online. However, when I try to add another Vue.JS instance, it fails to redirect properly t ...
I am facing an issue with my NextJS app "^11.1.2" when deploying it using Dockerfile and CI/CD to production. The problem arises with the rendering of my process.env variables Within my client-side code, I have the following line that should be rendered a ...
I'm currently facing challenges with building my application on a local cluster using skaffold, k8s, and docker. In particular, I have a code repository that requires a private NPM package, but during the build process, it seems to lose the .npmrc file or ...
After setting up Next.js typescript with Kubernetes NGINX Ingress, I encountered a problem where specific routes were returning a 502 error. For example, the route /test works fine, but /login does not. I'm unsure whether the issue lies with Kubernete ...
I recently posted a question on Stack Overflow having a similar issue. I followed the instructions provided in the answer of this post: How to get access to Kubernetes container environment variables from Next.js application?. However, even after calling m ...
Currently, I am utilizing selenium KEDA for auto-scaling purposes. However, upon reviewing the HPA logs, I stumbled upon an error stating that it FAILED to retrieve the Metrics. I would greatly appreciate any guidance or assistance in resolving this issue ...
I am looking to develop a Python script that can connect to a Kubernetes worker node, retrieve a list of network interfaces, capture traffic from a selected interface using tcpdump, and then save the resulting pcap file on the master node. Is there a way ...
I am encountering an issue with our website deployment on GKE, which consists of 10 pods. When deploying a new version, we use MAXsurge=1 and MAXunavailable=0. Upon trying to access the website during a new deployment, I sometimes only see the header in t ...
We are currently implementing the use of github actions, with a focus on securely storing sensitive information like kubeconfig within github's secrets. A GitHub secret has been set up under the name KUBECONFIG1 Steps to Replicate The GitHub secret shoul ...
Currently, I am deploying a NextJS app across multiple K8 environments, each with its own set of variables that need to be passed. Although I can pass these variables and retrieve them using getServerSideProps(), the issue arises as this function only work ...
After successfully running my application on Docker, I encountered an issue with the database connection when migrating to Kubernetes. The error message received is: pymongo.errors.ServerSelectionTimeoutError pymongo.errors.ServerSelectionTimeoutError: co ...
Currently enrolled in a Kubernetes course and encountering an issue while trying to create a pod within Kubernetes. My setup includes Ubuntu, AMD64 I followed the steps (here) to install microk8s.kubectl This is my Dockerfile, functioning correctly with ...
When operating Express (NodeJS) in an environment like Kubernetes, which approach is more cost-effective: having more cores and fewer nodes, or having more nodes with fewer cores each? (Assuming a linear cost of cpus per node, for example, 1 node with 4 co ...
As I work on developing a scraping app using multiple Selenium scripts that are interdependent, I've realized the potential benefits of utilizing Kubernetes for this project. However, in order to make this setup successful, I need to establish communi ...
Reference: https://github.com/kubeflow/pipelines/issues/7608 I encountered an issue while transitioning a code file from Kubeflow v1 to Kubeflow v2. The code file runs smoothly on Kubeflow v1, but upon moving it to Kubeflow v2, I received the following er ...
In the past, our system functioned with Docker swarm and multiple services like nginx, nodejs/auth, and web app all linked to an application gateway. Each tenant/customer had their own URL mapped to the app gateway IP, allowing for customized pages based o ...
I currently have an application deployed on Kubernetes (Google Cloud). To ensure the deployment runs smoothly, it must return a 200 status response to endpoints "/healthz" and "/". In my Express server, I've set up a route that handles this like so: ...
I have a docker image that is serving its server on / (root). In my ingress, I already have a service called homepage that corresponds to the /. My goal is: Visiting / should redirect me to the home page. Visiting /custom should lead me to the docker ser ...
Recently dipping my toes into kubernetes, I've got minikube up and running on my linux mint 20. Currently working to implement server-side rendering with nextjs, and I've used helm to install ingress-nginx. ingess-service.yaml : apiVersion: netw ...