google-kubernetes-engine

System is not terminated in scala application in docker on GKE

こ雲淡風輕ζ 提交于 2021-02-08 06:24:37
问题 I have a scala application that uses Akka Streams and running as a cronjob in Google Kubernetes Engine. But the pod is still in the “Running” state (not completed). And the Java process is still running inside the container. Here's what I do exactly: I build the docker image with sbt-native-packager and sbt docker:publish . When the job is done, I terminate it with regular system.terminate call. implicit val system: ActorSystem = ActorSystem("actor-system") /* doing actual stuff */ stream

System is not terminated in scala application in docker on GKE

落爺英雄遲暮 提交于 2021-02-08 06:24:36
问题 I have a scala application that uses Akka Streams and running as a cronjob in Google Kubernetes Engine. But the pod is still in the “Running” state (not completed). And the Java process is still running inside the container. Here's what I do exactly: I build the docker image with sbt-native-packager and sbt docker:publish . When the job is done, I terminate it with regular system.terminate call. implicit val system: ActorSystem = ActorSystem("actor-system") /* doing actual stuff */ stream

How can I get the billing for a VM Instance in GCP?

好久不见. 提交于 2021-02-08 05:01:58
问题 I have a project in Google Cloud , where I have multiple instances running, and I have a billing account for the organisation. But I want to make a VM instance, say vm-01 for couple of hours then it will be deleted. I want to get the exact cost that vm-01 incurred during it's period using the API calls. Is it possible? 回答1: In your GCP Web Console, go to Billing page go to Billing export section you could either export the detail billing to BigQuery or File you could search the billing item

Can't connect to container cluster: environment variable HOME or KUBECONFIG must be set when running gcloud get credentials

大憨熊 提交于 2021-02-07 14:28:33
问题 For some reason I can't connect to the cluster. Having followed the instructions per google container-engine after setting up the cluster, I get the following error: ERROR: (gcloud.container.clusters.get-credentials) environment variable HOME or KUBECONFIG must be set to store credentials for kubectl When running this command: gcloud container clusters get-credentials [my cluster name] --zone us-central1-b --project [my project name] Any ideas how I should be setting the variable HOME or

kubernetes: Failed to update endpoints warning

时光怂恿深爱的人放手 提交于 2021-02-07 13:34:13
问题 Here is something I noticed in my kubectl get events output Warning FailedToUpdateEndpoint Endpoints Failed to update endpoint mynamespace/myservice: Operation cannot be fulfilled on endpoints "myservice": the object has been modified; please apply your changes to the latest version and try again I am aware of this discussion, but I do not think is applicable, given I am not explicitly creating an Endpoint resource via yaml . I am noticing some minor service unavailability during image

kubernetes: Failed to update endpoints warning

匆匆过客 提交于 2021-02-07 13:33:40
问题 Here is something I noticed in my kubectl get events output Warning FailedToUpdateEndpoint Endpoints Failed to update endpoint mynamespace/myservice: Operation cannot be fulfilled on endpoints "myservice": the object has been modified; please apply your changes to the latest version and try again I am aware of this discussion, but I do not think is applicable, given I am not explicitly creating an Endpoint resource via yaml . I am noticing some minor service unavailability during image

Kubernetes pods can't pull images from container registry (gcp)

跟風遠走 提交于 2021-02-07 05:20:46
问题 I want to update my deployment on kubernetes with a new image which exists on 'eu.gcr.io' (same project), I have done this before. But now the pods fail to pull the image because they are not authorized to do so. This is the error that we get in the pod logs. Failed to pull image "eu.gcr.io/my-gcp-project/my-image:v1.009": rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid

Kubernetes pods can't pull images from container registry (gcp)

会有一股神秘感。 提交于 2021-02-07 05:12:14
问题 I want to update my deployment on kubernetes with a new image which exists on 'eu.gcr.io' (same project), I have done this before. But now the pods fail to pull the image because they are not authorized to do so. This is the error that we get in the pod logs. Failed to pull image "eu.gcr.io/my-gcp-project/my-image:v1.009": rpc error: code = Unknown desc = Error response from daemon: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid

How to create a Google CDN for a GKE service

跟風遠走 提交于 2021-02-06 11:52:19
问题 I've deployed a wordpress site on GKE (kubernetes) and I can access my Site from the internet like this mysite.test.com and works like a charm. Now I want to use Google CDN to accelerate access. I've tried using an Ingress resource but I would like to do it using a Load Balancing on the Networking tab on Google Console. What steps do I need to take? 回答1: I just wrote a post about using the Google CDN with Kubernetes: https://medium.com/@chees/code-cooking-kubernetes-e715728a578c The important

How to create a Google CDN for a GKE service

荒凉一梦 提交于 2021-02-06 11:51:22
问题 I've deployed a wordpress site on GKE (kubernetes) and I can access my Site from the internet like this mysite.test.com and works like a charm. Now I want to use Google CDN to accelerate access. I've tried using an Ingress resource but I would like to do it using a Load Balancing on the Networking tab on Google Console. What steps do I need to take? 回答1: I just wrote a post about using the Google CDN with Kubernetes: https://medium.com/@chees/code-cooking-kubernetes-e715728a578c The important