google-kubernetes-engine

postgres on kubernetes volume permission error

帅比萌擦擦* 提交于 2019-12-25 04:12:02
问题 I'm trying to deploy postgres/postgis on GKE, but I continue to get the permission error: initdb: could not change permissions of directory "/var/lib/postgresql/data": Operation not permitted . I've tried various fixes that I've researched but I've yet to get passed this error. Below is my deployment yaml. What am I missing? apiVersion: extensions/v1beta1 kind: Deployment metadata: name: postgres spec: replicas: 1 template: metadata: labels: app: postgres spec: terminationGracePeriodSeconds:

GKE Kubernetes Persistent Volume

时光怂恿深爱的人放手 提交于 2019-12-25 01:53:12
问题 I try to use a persistent volume for my rethinkdb server. But I got this error: Unable to mount volumes for pod "rethinkdb-server-deployment-6866f5b459-25fjb_default(efd90244-7d02-11e8-bffa-42010a8400b9)": timeout expired waiting for volumes to attach/mount for pod "default"/"rethinkdb-server-deployment- Multi-Attach error for volume "pvc-f115c85e-7c42-11e8-bffa-42010a8400b9" Volume is already used by pod(s) rethinkdb-server-deployment-58f68c8464-4hn9x I think that Kubernetes deploy a new

Google kubernetes engine node-pool problem

旧城冷巷雨未停 提交于 2019-12-25 01:12:02
问题 When i try to create a node-pool using n2 and e2 machines in google kubernetes engine it shows this error Creation of node-pool with N1 machine type Create node pool "pool-1" in Kubernetes Engine cluster 11 minutes ago Insufficient regional quota to satisfy request: resource "N2_CPUS": request requires '2.0' and is short '2.0'. project has a quota of '0.0' with '0.0' available. View and manage quotas at Create node pool "pool-5" in Kubernetes Engine cluster 9 minutes ago Deploy error: Not all

Transferring Kubernetes cluster to other project include PVC

这一生的挚爱 提交于 2019-12-25 00:15:08
问题 I have a problem to migrate kubernetes cluster to other google project, not so familiar with GKE. Assuming my cluster is k8s-prod-xyz in xyz-proj project. Now, i have a new project called xyz-new-proj and the Kubernetes cluster is still empty. I want to move or migrate the k8s-prod-xyz from xyz-proj to xyz-new-proj. Node, PVC, Services, etc should be transfered or migrated. Have you guys experienced this case ? Or should i create new Kubernetes cluster in new project and then run the

How to wait for the other container completed execution in k8s?

橙三吉。 提交于 2019-12-25 00:13:50
问题 Assume I have an app A container and another container called resources-preparation which will try to create DB tables and etc in order to bootstrap app A . App A container and resources-preparation container are living in different pods. How can I bring up App A container after resources-preparation container completes. PS: resources-preparation container is not a service at all. So I may not be able to use the waitfor image to detect the resources-preparation container completes. 回答1: It

RunAsUser issue & Clicking external IP of load balancer -> Bad Request (400) on deploying Django app on GKE (Kubernetes) and db connection failing:

感情迁移 提交于 2019-12-24 21:14:21
问题 Probem: I have 2 replicas for my app, library. I have configured a service to talk to my two replicas. I have a dockerfile that starts my app at port # 8080. The load balancer and the app containers all seem to be running. However, I am not able to connect to them. Every time I click on the external IP shown I get "Bad Request (400)" This log from the container seems to indicate somethingw ith the db connection going wrong... 2019-12-07 07:33:56.669 IST Traceback (most recent call last): File

Can't use Google Cloud Kubernetes substitutions

自古美人都是妖i 提交于 2019-12-24 21:14:11
问题 Obviously, I'm doing something in the wrong way, but I can't understand where is the problem. I'm a new to Kubernetes. There is the Node.js app, I'm able to wrap it to the Docker and deploy to Google Compute engine (it works with Git trigger and locally). The most important thing here - there are env variables, some of them are secret, encrypted with key. Google uses it too to decrypt values and give them to the application during the build process (everything is done based on Google docs).

Kubernetes Java API for Kubectl copy command

孤街浪徒 提交于 2019-12-24 21:14:07
问题 I have a container running inside Kubernetes cluster (within POD) along side many other containers (in their own PODs) and my container is a common container. Now, I want to pull (copy) the files from other containers to my common container. I investigated for some options and found that kubectl copy can be used. But, for that, I need to include kubectl command line tool inside my common container. I'm not sure if this is right approach. So, I thought of using Java Kubernetes APIs to do the

standalone network endpoint group (NEG) on GKE not working

跟風遠走 提交于 2019-12-24 18:52:27
问题 i am running a minimal stateful database service on GKE. single node cluster. i've setup a database as a stateful set on a single pod as of now. the database has exposed a management console on a particular port along with the mandatory database port. i am attempting to do two things. expose management port over a global HTTP(S) load balancer expose database port outside of GKE to be consumed by the likes of Cloud Functions or App Engine Applications. My stateful set is running fine and i can

Cannot reach resource through ingress on GKE

纵然是瞬间 提交于 2019-12-24 18:26:07
问题 I'm trying to create an Ingress resource that fans out to two services that are running healthily. This is my very simple config: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-ingress namespace: default spec: rules: - http: paths: - path: /* backend: serviceName: service1 servicePort: 8080 - path: /service2/* backend: serviceName: service2 servicePort: 9090 Only requests to the root ( / ) path seem to work. I've been trying to trouble shoot this using similar posts online,