Kubernetes

Kubernetes Pod's containers not running when using sh commands

回眸只為那壹抹淺笑 提交于 2021-02-11 18:21:18
问题 Pod containers are not ready and stuck under Waiting state over and over every single time after they run sh commands (/bin/sh as well). As example all pod's containers seen at https://v1-17.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-with-data-from-multiple-configmaps they just go on "Complete" status after executing the sh command, or if I set "restartPolicy: Always" they have the "Waiting" state for the reason

Kubernetes Pod's containers not running when using sh commands

天大地大妈咪最大 提交于 2021-02-11 18:20:07
问题 Pod containers are not ready and stuck under Waiting state over and over every single time after they run sh commands (/bin/sh as well). As example all pod's containers seen at https://v1-17.docs.kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#define-container-environment-variables-with-data-from-multiple-configmaps they just go on "Complete" status after executing the sh command, or if I set "restartPolicy: Always" they have the "Waiting" state for the reason

unable to access a service from another pod, using xmlhttprequest object

亡梦爱人 提交于 2021-02-11 18:16:13
问题 So, I wrote an API that is listening on the the path /api/v1/books and is deployed as a deployment on my k8s cluster, created service ( restapi-service ) so that we can call that from another pods. Now I created another deployment ( restapi-ui-deployment ) that just has a .html page and and its being deployed on nginx, which eventually calls the the service that we have created earlier to get the response. Now, the issue is when I exec into the pods of restapi-ui-deployment I am successfully

unable to access a service from another pod, using xmlhttprequest object

♀尐吖头ヾ 提交于 2021-02-11 18:16:13
问题 So, I wrote an API that is listening on the the path /api/v1/books and is deployed as a deployment on my k8s cluster, created service ( restapi-service ) so that we can call that from another pods. Now I created another deployment ( restapi-ui-deployment ) that just has a .html page and and its being deployed on nginx, which eventually calls the the service that we have created earlier to get the response. Now, the issue is when I exec into the pods of restapi-ui-deployment I am successfully

unable to access a service from another pod, using xmlhttprequest object

主宰稳场 提交于 2021-02-11 18:14:15
问题 So, I wrote an API that is listening on the the path /api/v1/books and is deployed as a deployment on my k8s cluster, created service ( restapi-service ) so that we can call that from another pods. Now I created another deployment ( restapi-ui-deployment ) that just has a .html page and and its being deployed on nginx, which eventually calls the the service that we have created earlier to get the response. Now, the issue is when I exec into the pods of restapi-ui-deployment I am successfully

How to Change Kubernetes Node Status from “Ready” to “NotReady” by changing CPU Utilization or memory utilization or Disk Pressure?

倾然丶 夕夏残阳落幕 提交于 2021-02-11 18:05:26
问题 I have kubernetes cluster set up of 1 master and 1 worker node.For testing purpose , I increased CPU Utlization and memory utilization upto 100%, but stilling Node is not getting status "NotReady". I am testing Pressure Status .. How to change status flag of MemoryPressure to true or DiskPressure or PIDPressure to true Here are my master node condtions :- Conditions: Type Status LastHeartbeatTime LastTransitionTime Reason Message ---- ------ ----------------- ------------------ ------ -------

how to autoscale the spring batch application in openshift?

喜欢而已 提交于 2021-02-11 15:42:14
问题 I have a spring batch application which will trigger the job to transfer bulk data from one database to another database through API call.All jobs are configured to work in parallel processing(Master/slave step)partition and deployed this application in openshift. Need to autoscale the application based on the load during the job execution.Even though i have used the openshift autoscale feature still i couldn't find the efficiency in performance of the job. PODs are simply creating but only

Kubernetes Nginx Ingress can connect to https pods?

让人想犯罪 __ 提交于 2021-02-11 15:37:32
问题 I have three pods with HTTPS servers inside. I used to acces them via NodePort services. Now I deployed a Nginx Ingress to have them all in one IP. I have noticed that the Nginx Ingress can't connect with an HTTPS server in a pod, but it connects perfectly if I change it to HTTP. How can I make the Ingress connect with HTTPS servers in pods? I have tried to configure a tls secret, and add it to the Ingress: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: k8s-ingress annotations:

Kubernets PODs running on different host, not able to establish TCP connection

十年热恋 提交于 2021-02-11 15:17:50
问题 I have Kubernets 1.20.1 cluster with single master and single worker configured with ipvs mode. Using calico CNI calico/cni:v3.16.1 . Cluster running on OS RHEL 8 kernel 4.18.0-240.10 with firewalld and selinux disabled. Running one netshoot pod ( 10.1.30.130 ) on master and another pod ( 10.3.65.132 ) in worker node. I can ping both pod, in both direction if run the nc command in web server mode, connection is not working. I tried to run nginx on both server, not able get http traffic one

Kubernetes(Istio) Mongodb enterprise cluster: HostUnreachable: Connection reset by peer

主宰稳场 提交于 2021-02-11 15:15:44
问题 I have Istio1.6 running in my k8 cluster. In the cluster I have also deployed sharded mongodb cluster with istio-injection disabled . And I have a different namespace for my app with istio-injection enabled . And from the pod if I try to connect to the mongo I get this connection reset by peer error : root@mongo:/# mongo "mongodb://mongo-sharded-cluster-mongos-0.mongo-service.mongodb.svc.cluster.local:27017,mongo-sharded-cluster-mongos-1.mongo-service.mongodb.svc.cluster.local:27017/?ssl