Kubernetes

Kubernetes trouble with StatefulSet and 3 PersistentVolumes

丶灬走出姿态 提交于 2021-02-08 10:40:34
问题 I'm in the process of creating a StatefulSet based on this yaml, that will have 3 replicas. I want each of the 3 pods to connect to a different PersistentVolume. For the persistent volume I'm using 3 objects that look like this, with only the name changed (pvvolume, pvvolume2, pvvolume3) : kind: PersistentVolume apiVersion: v1 metadata: name: pvvolume labels: type: local spec: storageClassName: standard capacity: storage: 10Gi accessModes: - ReadWriteOnce hostPath: path: "/nfs" claimRef: kind

Pass date command as parameter to kubernetes cronjob

你说的曾经没有我的故事 提交于 2021-02-08 10:40:32
问题 I want to execute data migration through Kubernetes cronjob using Luigi pipeline. My luigi task receives --start parameter which I want to pass through cronjob command. apiVersion: batch/v1beta1 kind: CronJob metadata: name: migration spec: schedule: "0 0 */1 * *" jobTemplate: spec: template: spec: serviceAccountName: spark containers: - name: migratecronjob image: latest-image imagePullPolicy: Always env: - name: TAG value: latest-image - name: MIGRATION_TAG value: migration-v05 command: -

Find why i am getting 502 Bad gateway error on kubernetes

丶灬走出姿态 提交于 2021-02-08 10:38:59
问题 I am using kubernetes. I have Ingress service which talks my container service. We have exposed a webapi which works all fine. But we keep getting 502 bad gateway error. I am new to kubernetes and i have no clue how to go about debugging this issue. Server is a nodejs server connected to database. Is there anything wrong with configuration? My Deployment file-- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: my-pod spec: replicas: 1 template: metadata: labels: app: my-pod spec

Find why i am getting 502 Bad gateway error on kubernetes

此生再无相见时 提交于 2021-02-08 10:37:24
问题 I am using kubernetes. I have Ingress service which talks my container service. We have exposed a webapi which works all fine. But we keep getting 502 bad gateway error. I am new to kubernetes and i have no clue how to go about debugging this issue. Server is a nodejs server connected to database. Is there anything wrong with configuration? My Deployment file-- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: my-pod spec: replicas: 1 template: metadata: labels: app: my-pod spec

Find why i am getting 502 Bad gateway error on kubernetes

空扰寡人 提交于 2021-02-08 10:36:19
问题 I am using kubernetes. I have Ingress service which talks my container service. We have exposed a webapi which works all fine. But we keep getting 502 bad gateway error. I am new to kubernetes and i have no clue how to go about debugging this issue. Server is a nodejs server connected to database. Is there anything wrong with configuration? My Deployment file-- apiVersion: extensions/v1beta1 kind: Deployment metadata: name: my-pod spec: replicas: 1 template: metadata: labels: app: my-pod spec

CrashLoopBackOff (Mongo in Docker/Kubernetes) - Failed to start up WiredTiger under any compatibility version

落花浮王杯 提交于 2021-02-08 10:27:19
问题 I'm suddenly facing some issues in my Kubernetes application (with no event to explain it). The application has been working properly during one year but now I'm getting a CrashLoopBackOff status. IMPORTANT UPDATE: I cannot update the Mongo replication controller in GKE, because when I commit the changes in mongo.yml (from GIT) all workloads update except mongo-controller (which is down). In GKE in Workloads/Mongo-controller/Managed pods I can see that the "Created on" date is some days ago

Change index.html nginx kubernetes deployment

放肆的年华 提交于 2021-02-08 10:12:58
问题 I have this deployment: I was able to edit the index page at one of my pods, but how can I commit it to the deployment image? So when I scale the application all new pods will have the same image with index edited. 回答1: It's worked for me apiVersion: v1 kind: Pod metadata: name: nginx labels: name: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 volumeMounts: - mountPath: /usr/share/nginx/html/index.html name: nginx-conf subPath: index.html volumes: - name: nginx

Change index.html nginx kubernetes deployment

一个人想着一个人 提交于 2021-02-08 10:10:09
问题 I have this deployment: I was able to edit the index page at one of my pods, but how can I commit it to the deployment image? So when I scale the application all new pods will have the same image with index edited. 回答1: It's worked for me apiVersion: v1 kind: Pod metadata: name: nginx labels: name: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 volumeMounts: - mountPath: /usr/share/nginx/html/index.html name: nginx-conf subPath: index.html volumes: - name: nginx

How to configure Azure App Gateway in Istio

拥有回忆 提交于 2021-02-08 10:06:55
问题 I have an application setup on AKS (Azure Kubernetes Service) and I’m currently using Azure Application gateway as ingress resource for my application running on AKS. Now after setting up ISTIO for my cluster the graphs are coming up fine except one part. Since the Azure APP gateway is unknown to ISTIO it is showing the resource as “unknown”. I even tried launching a virtual service and pointed it to the ingress resource but that didn’t have any effect on the graph. How shall I establish to

How to configure Azure App Gateway in Istio

跟風遠走 提交于 2021-02-08 10:01:35
问题 I have an application setup on AKS (Azure Kubernetes Service) and I’m currently using Azure Application gateway as ingress resource for my application running on AKS. Now after setting up ISTIO for my cluster the graphs are coming up fine except one part. Since the Azure APP gateway is unknown to ISTIO it is showing the resource as “unknown”. I even tried launching a virtual service and pointed it to the ingress resource but that didn’t have any effect on the graph. How shall I establish to