What should you do when you’ve developed and installed a cron job for your Kubernetes application, and you need to test it? When writing classic cron jobs in Unix, it’s obvious how to test the job- just manually run the command specified in the... Read More | Share it now!
Tag Archives: kubernetes
Kubernetes secrets by example You don’t want sensitive information such as a database password or an API key kept around in clear text. Secrets provide you with a mechanism to use such information in a safe and reliable way with the following... Read More | Share it now!
Google Cloud Registry (GCR) with external Kubernetes
For information about how to pull from other private registries, see the following topics: Docker Hub private repository with Kubernetes Amazon EC2 Container Registry (ECR) with Kubernetes If you run Kubernetes on Google Cloud Platform (GCP), Google... Read More | Share it now!
Pull image from private registry
https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ Create a Secret based on existing Docker credentials A Kubernetes cluster uses the Secret of docker-registry type to authenticate with a container... Read More | Share it now!
How can I pass artifacts to another stage?
Use dependencies. With this config test stage will download the untracked files that were created during the build stage: ... Read More | Share it now!
GCR(Container Registry) Authentication methods
https://cloud.google.com/container-registry/docs/advanced-authentication To authenticate to Container Registry, you should use gcloud as a Docker credential helper as described below. This page also describes advanced... Read More | Share it now!
For OpenShift use: For vanilla Kubernetes: Examine the events of the output. In my case it shows Back-off pulling image coredns/coredns:latest In this case the image coredns/coredns:latest can not be pulled from the Internet. Additional debuging... Read More | Share it now!
Push docker image to GCR for kubernetes 推送和拉取映像
本页面介绍如何推送和拉取映像，这是使用 Container Registry 时的两项最常见任务。要将新映像推送到 Container Registry，您首先需要使用注册表名称来标记该映像，如下所述。 要开始使用 Container... Read More | Share it now!
Configure Liveness and Readiness Probes (Heartbeat for kubernetes pods)
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/ This page shows how to configure liveness and readiness probes for Containers. The kubelet uses liveness probes to know when to restart a... Read More | Share it now!
Unable to connect to the server: x509: certificate signed by unknown authority
https://github.com/kubernetes/kops/issues/964 Did some digging around and found that it is because of self signed certificates. This can be solved by adding to every kubectl command or (the preferred way) adding: to the kube-apiserver startup shell... Read More | Share it now!