Kubernetes Questions
Ad
SSE broken after deploying with Kubernetes and connecting via Ingress
I've a reactjs client which uses eventstream and a golang backend which implements sse. everything seemed to work when i connected my
Kubernetes: How can I set the number of replicas more than 1 using awsElasticBlockStore?
I'm trying to create a cassandra cluster in kubernetes. i want to use awselasticblockstore to make the data persistent. as a result,
Use kubernetes with helm and provide my predefined user and password with bitnami correctly
I am using kubernetes with helm 3. i need to create a kubernetes pod with sql - creating: database name: my_database
Google Cloud Platform kubernetes GuestBook example not running
I'm trying to follow the directions to get the google cloud platform kubernetes guestbook example running. i've got a
How do you mock Python Kubernetes client CoreV1Api
I am using kubernetes client: kubernetes my function:
GCP - Pub/Sub Publish slowdown
Few days ago (~2022. feb. 09.), we detect a massive slowdown during publishing messages via
Is there a easy way to shut down python grpc server gracefully?
Here is a blog explaining how
What is default behavior of Kubernetes when pod crashes?
In kubernetes deployment with 4 static pods and no autoscaling, what happens by default if one pod crashes? will it be re-created automatically
react front-end, node js back-end, monogo db deployment as microservices at kuberenetes minikube
My app is react front-end <------> nodes js back-end <------> mongodb source code can be
Kubernetes cluster shuts down after some processing
I have a cluster on gcp running a nodejs server. this server runs fine locally, but stops, without any message, when i send a post to a route.
Ad
docker - passing file name as arguments to nodejs application
I have to convert an existing nodejs application to run on the redhat openshift container platform. currently, the application is run
How can I get node's memory with kubernetes-client lib in python
Could not find how can i obtain information about memory consumption on kubernetes node with kubernetes-client library in python. i know how to
how to configure hyperledger node sdk with kubernetes cluster?
I am able to configure hyperledger fabric and kubernetes with cli. but now i want to configure hyperledger fabric node sdk with kubernetes. i have
express + socket.io + kubernetes Access-Control-Allow-Origin' header
I'm setting up kubernetes cluster with node.js app. i have created all deployments, services and ingress and only thing that is not working are
How to refer Environment variables mentioned in openshift deployment, inside python code running in the pod of same deployment
I am new to openshift container platform. i am trying to deploy my ml model written in python, which serves the json request based on
Node HTTP/2 the correct place to set managed certificate
I have created a nodejs application using http/2 following
Do we still use api endpoint health check in Kubernetes
I want to use api endpoint health check like /healthz or /livez or /readyz. i recently heard about it,
Inconsistent Behaviour When Writing to a File From Multiple Pods on an EFS Volume with ReadWriteMany
I am running a laravel application on kubernetes and currently have a requirement to mount a storage/log folder from multiple pods where all pods
How to connect mysql kubernetes container internally with nodejs k8s container?
I have created mysql k8s container and nodejs k8s container under same namespace.i can't able to connect mysql db.(sequalize) i have tried
NodeJs api container crashing in kubernetes
As part of the cicd pipeline i deploy my web api to kubernetes, the most recent branch i'm working on keeps crashing. i have made sure the
Firebase Admin Go SDK getting x509 certificate error ONLY when running inside Kubernetes
I'm currently working on a project using the firebase admin go sdk to handle auth and to use the real time database. the project works correctly
Ad
Expose rabbitmq managment via kubernetes ingrress
I have a kubernetes cluster with a deployment of rabbitmq. i want to expose the rabbitmanagment ui in that way i can access to it in my browser.
Kubernetes number of replicas vs performance
I have just gotten into kubernetes and really liking its ability to orchestrate containers. i had the assumption that when the app starts to grow,
Extracting string between two characters in helm
I am trying to extract all strings between ( and ) from values.yaml in _helper.tpl. in
Does anyone know nay fix for this error (TypeError: Cannot assign to read only property 'map' of object '#<QueryCursor>'
In local working fine but when i deployed on digital ocean kubernetes server then showing error. please help....
How can I generate a `V1Job` object for the Kubernetes nodejs API client from a yaml file?
I've done this previously in python using: with open(path.join(path.dirname(__file__), "job.yaml")) as f: body=
Kubectl command to check if cronjob is active or not
I'm trying to check if a particular cronjob is active or not through a shell script to perform some action if the job is not active. i tried using
How to develop microservice architecture in nodejs
How can i build microservice architecture using nodejs express any guide or reference thanks in advance
Environment variables not available within pod/container when using "envFrom" and "configMapRef" (kustomize/kubernetes/laravel)
I use kustomize as a standalone binary (installed with homebrew) and have the following base/kustomization.yaml file:
access database from multiple kubernetes pods
i have 2 applications in 2 pods as well as a postgres db deployed using a helm chart. the one application writes to the
How to get a list of all services available on cluster?
Trying to use kubernetes-client and it works fine if i want to get a list of pods. but how do i get a list of services, i.e.:
Ad
How to get all running PODs on Kubernetes cluster
This simple node.js program works fine on local because it pulls the kubernetes config from my local /root/.kube/config file const
Can you avoid the pod to be restarted after kubectl attach?
I have an ubuntu image that i use for debugging. i do kubectl attach my-app -c my-app -it and then many apt-get install
kubernetes getting 502 bad gateway
Brand new to kubernetes and am having an issue where i am getting a 502 bad gateway when trying to hit the api. my configs look like
Can I deploy pods in public and private subnets?
I am currently trying to identify the required aws vpc and subnet structure for eks. however, would like to check whether i can deploy the
Jenkins installation on Kubernetes issue with volume conflict
I'm following this link to setup jenkins on
How to create an upload folder for a web app in Kubernetes?
We're experimenting kubernetes and thinking about migrating our webapp, currently hosted in a classic public cloud with vps and load
can bash use kubectl get pods run a log watch sequentially?
Note: this is more a bash/shell script issue than kubernetes. so i have one replica of a pod, and so kubectl get pods will
Jenkins on Kubernetes service yaml parsing error
I'm following this link to setup
How to configure Mongodb connection within kubernetes to connect with my nodejs app
I create an nodejs app and try to connect it with mongodb on kubernetes cluster. the nodejs and mongodb app are separate pods in my cluster.
How to use ip in docker container
How to create public container image if i am declaring ip address for mongo db in my nodejs app like: const client =
Is it possible to add a elb (cloud provider) to an existing kubernetes cluster running on RHEL8 EC2?
I have a cluster running on aws ec2 and not a managed eks, i'm trying to add a loadbalancer to the cluster without restarting it or initializing a
Ad
When I start Milvus Cluster by helm, I encounter this error "0/4 nodes are available: 4 node(s) didn't satisfy existing pods anti-affinity rules."
I follow this link to install milvus cluster. when i
Can I write a kubernetes controller in Nodejs instead of go?
Looking into it for making awesome api things, but i don't know go yet. i see there are generators for go, but i'd rather use a more familiar
SSL on node.js API running in StatefulSet on GKE
I have an app with the following structure: an r shiny app which functions as a ui and it lets the user upload files and stores them
configurable vue frontend application
Im working on a vue frontend that consumes a backend api that are both being deployed to the same kubernetes cluster. i would like to make the vue
Kubernetes authorization, only succesful after running hello-server
I've been working on a python project with the goal to interact with kubernetes. one of the problems i have run into is the authentication
How to fix 'No such file or directory: '/home/jenkins/.kube/config'' when using load_incluster_config in python openshift rest client
I wrote a script that checks some secrets within an openshift cluster. i used the python rest-client library for openshift and the script is
Caching server in Docker container orchestrated in Kubernetes
I want to implement caching server in a docker container and the whole cluster is orchestrated by kubernetes. below is the diagram with
Caching in kubernetes
I have a nodejs app deployed as docker container and i am using kubernetes for orchestration.
Skaffold Kubernetes does not display React changes
The issue: when running skaffold and update watched files, i see the file sync update occur and nodemon restart the
Why is ClusterRole allowed to list_pod_for_all_namespaces() but not read_namespaced_pod_status
I'm using python and want to be able to check the status of a pod with:
How to exec into a container and view file if container is in CrashLoopBackOff state
I am running nodejs based application on kubernetes and it's in crashloopbackoff state.
Ad
Failed to find application object 'app' in 'app' gunicorn
I am using a flask microservice with gunicorn to make requests to a service hosted on google kubernetes engine. the microservice is dockerised and
Istio policy not authenticating JWT
I have implemented an istio policy so that users will need a jwt token to access my backend, and admin-backend services. however, it is not
K8s Issue connecting to Cassandra on Mac OS (via Node.js)
While trying to setup cassandra database in a local kubernetes cluster on a mac os (via minikube), i am getting connection issues. it seems like
Frontend App shows a blank page if I scale up kubernetes deployment to 3
I have a frontend application that works perfectly fine when i have just one instance of the application running in a kubernetes cluster. but when
Helm Kubernetes setup mysql with NodeJs application
I'm new to kubernetes and helm world and trying to deploy a nodejs application with a mysql database using kubernetes and helm on azure
How to mount folder/file to KubernetesPodOperator Airflow
I need to run a python script from a kubernetespodoperator, so i want to mount the python file into the python docker image. reading some
PostgreSQL error when trying to connect from node application
Fatal: no postgresql user name specified in startup packet logs from my postgresql instance in my kubernetes cluster
why is jq not working inside bash variable
I have the following code #/bin/bash set -e set -x requestresponse=$(ssh jump.gcp.xxxxxxx """source dev2 spi-dev
How do I resolve "Error: "helm template" requires at least 1 argument"?
I am trying to run helm command in the jenkinsfile pipeline and i am getting an error that it is expecting at least 1 argument. below
error converting YAML to JSON Line did not find expected '-' indicator
I am new to kubernetes i am writing a yml file to create a deployment. i am crating deployment by running this command "kubectl create -f
How to read a Kubernetes Deployment with python kubernetes client
What is python kubernetes client equivalent for kubectl get deploy -o yaml
Ad
Google Cloud Kubernetes Laravel Get Visitor IP
I'm trying to get visitor ip on my laravel application that uses nginx on google cloud kubernetes engine, under load balancer. i have set
How to use python kubernetes-client to get given resources' corresponding YAML file
With kubectl, i know i can run below command if i want to see specific resources yaml file kubectl -n <some namespace> get
How to implement custom logic for kubernetes pod termination?
I have a pod that is stateful (handles phone calls from an ivr) and due to that, performing updates or having an hpa perform pod termination can
Node process.env variable in eval() function gives different result
I have a react app running in node with serverside rendering. the following environment variable is set to test through kubernetes in
how to get kubectl configuration from azure aks with python?
I create a k8s deployment script with python, and to get the configuration from kubectl, i use the python command:
How to deploy a node.js with redis on kubernetes?
I have a very simple node.js application (http service), which "talks" to redis. i want to create a deployment and run it with minikube.
Deployment of multi-page web app with minikube
Good afternoon, i'm trying to use minikube in order to deploy a multi-page nodejs-mongodb web app. i have created my app, i have
Should You Use PM2, Node Cluster, or Neither in Kubernetes?
I am deploying some nodejs code into kubernetes. it used to be that you needed to run either pm2 or the nodejs cluster module in order to take
Expose node js app with host as localhost on kubernetes
I have spent whole day looking for an answer why my node js app is not reachable from the internet when i run it on kubernetes with loadbalancer
Kubernetes merges deleted job and new job
I'm having a google cloud function that is triggered when a file was uploaded to a bucket. the function connects to the kubernetes cluster (using
Error while deploying kubeless function to kubernetes cluster by using serverless framework
I am trying to deploy a kubeless function using serverless. i created a kubernetes cluster using minikube and i am trying to follow this
Ad
Permission denied while executing script entrypoint.sh from dockerfile in Kubernetes
I have a multistage dockerfile which i'm deploying in k8s with script as entrypoint
snipeit on kubernetes not running
I am trying to deploy snipe-it on k8s cluster i have running mysql on kubernetes i want to deploy snipe-it application on
How to add php-redis for a dockerfile of laravel to kubernetes?
I'm setting a deploy of laravel to kubernetes and want to have redis. actually i have a dockerfile for nginx and another one for
Why Kubernetes Services are created before Deployment/Pods?
If i have to deploy a workload on kubernetes and also have to expose it as a service, i have to create a deployment/pod and a service. if the
GCE, Kubernetes with Socket.IO, NodeJs not enough resources
I am trying to migrate a real-time socket.io nodejs application to kubernetes cluster on gcp. i am facing an issue while maintaining the session
Communication in k8s cluster
I have a k8s cluster of 2 hazelcast instances and one client application. target is to have many clients and at least 2 hazelcast members. i've
Backend with self-signed certificate
I'm building a website with separated backend / frontend. for now this website is hosted on my kubernetes cluster at home. there is one pod for
Removing dead Kuberenetes cluster from view
I have started learning kuberenetes for some time (not pro yet). i am using docker-desktop on windows 11 with kubernetes all works fine. but at
Contacting service in kubernetes
I thought i understood how kubernetes services work, and have always seen them like a way to "group" several pods, in order to make it
How to have a autoscalable Laravel API in kubernetes
So i've been playing with kubernetes for the last few days and diving into all the tech. but i've reached a point that i cannot surpass,
Redis Cluster with another master in another EKS(Kubernetes) cluster
We're using binami redis-cluster we have 2 different datacenter serving users from 2 regions. both are connected via aws direct connect.
Ad
Clear Kubernetes persistent volume on new image
I have a deployment of wordpress with a custom docker image with a custom theme copied into the image that gets deployed into a kubernetes cluster
Add a service_account.json to kubectl secrets
How to add a service_account.json file to kubernetes secrets? i tried kubectl create secret generic service_account.json -n sample
How do I copy Docker WordPress files from initContainer into an emptyDir in Kubernetes?
I'm trying to copy the final wordpress files from the official wordpress docker image, from an initcontainer into an emptydir volume. i expect the
How to use ENV vars in golang to pass DB connection values dynamically when deployed in kubernetes
I am currently developing a small api in golang which will connect to a sql database. below is the snip where i am passing the database connection
Laravel on kubernetes - slow composer vendor autoload (production)
We have set up a kubernetes cluster for our laravel application on google cloud platform. containers: application code +
Kubernetes CrashLoopBackOff default timing
What are the defaults for the kubernetes crashloopbackoff? say, i have a pod: kubectl run mynginx --image nginx
GKE problem when running cronjob by pulling image from Artifact Registry
I created a cronjob with the following spec in gke: # cronjob.yaml apiversion: batch/v1beta1 kind: cronjob metadata: name:
Docker Desktop Kubernetes Windows PV Non Root Container
I'm trying to get wordpress running with a shared volume for wp-config.php across replicas. i'm developing my manifest on docker
Dynamic "Fan-In" for artifact outputs in Argo?
I have an argo workflow with dynamic fan-out tasks that do some map operation (in a map-reduce meaning context). i want to create a reducer that
How to uninstall ArgoCD from Kubernetes cluster?
I've installed argocd on my kubernetes cluster using kubectl create namespace argocd kubectl apply -n argocd -f
Kubernetes create secret from json
I have this json {'kind': 'secret', 'foo': 'secret_value'} how can i use this json to create a secret in
Ad
When should I whitelist a Security group?
I have a security-group apple which is attached to my application eks worker nodes i.e. ec2 instances. i have another security-group
Google container builder, create new namespace for new branch
I am trying to develop my automation build. so what we want to achieve is whenever a developer push a code to a new branch, it will
Ad
Blog Categories
Ad