Kubernetes

Can anyone please guide how to pull private images from Kubernetes?

非 Y 不嫁゛ 提交于 2021-02-11 15:13:42
问题 kubectl create secret docker-registry private-registry-key --docker-username="devopsrecipes" --docker-password="xxxxxx" --docker-email="username@example.com" --docker-server="https://index.docker.io/v1/" secret "private-registry-key" created This command is used for accessing private docker repos. As referenced: http://blog.shippable.com/kubernetes-tutorial-how-to-pull-private-docker-image-pod But, not able to pull the image. When tried to access ="https://index.docker.io/v1/" It is giving

I want istio envoy proxy to translate http traffic to https

痞子三分冷 提交于 2021-02-11 14:52:28
问题 I'm using k8s with istio. And, I have external api with https endpoint (mutual tls) And I don't want every api request from k8s pod to implement mutual tls call, so it would be great if istio envoy proxy can process mutual tls. Then pod can call api with http, and request would be converted to https mtls request by envoy. +---------------------------------+ | (pod) ---http--> (envoy proxy) -|-https(mtls)--> external api +---------------------------------+ I managed to find a solution of

How to get Pod CPU and Memory Usage from metrics-server?

大兔子大兔子 提交于 2021-02-11 14:51:49
问题 I currently have metric server installed and running in my K8s cluster. Utilizing the the kubernetes python lib, I am able to make this request to get pod metrics: from kubernetes import client api_client = client.ApiClient() ret_metrics = api_client.call_api( '/apis/metrics.k8s.io/v1beta1/namespaces/' + 'default' + '/pods', 'GET', auth_settings=['BearerToken'], response_type='json', _preload_content=False) response = ret_metrics[0].data.decode('utf-8') print('RESP', json.loads(response)) In

Trying to distribute data processing across a cluster and then aggregate it in master

蓝咒 提交于 2021-02-11 14:50:56
问题 Right now I have a Python Application which runs 50 threads to process data. It takes an xlsx file and will process a list of values, and will output a simple csv. I said to myself, since this is a simple Python App with 50 threads, How can I create a cluster to distribute data-processing even more? FOR EXAMPLE: Have each Worker node process a subset given to it by the master. Well that sounds easy, just take the master app slice up the dataset generated and then push it to the workers with

I want istio envoy proxy to translate http traffic to https

会有一股神秘感。 提交于 2021-02-11 14:50:19
问题 I'm using k8s with istio. And, I have external api with https endpoint (mutual tls) And I don't want every api request from k8s pod to implement mutual tls call, so it would be great if istio envoy proxy can process mutual tls. Then pod can call api with http, and request would be converted to https mtls request by envoy. +---------------------------------+ | (pod) ---http--> (envoy proxy) -|-https(mtls)--> external api +---------------------------------+ I managed to find a solution of

Kubeflow pipeline doesnt create any pod; unknown status

懵懂的女人 提交于 2021-02-11 14:40:56
问题 I started working with kubeflow and created a first, little pipeline. Unfortunately it doesn't work, so when I try to create a run with my pipeline nothing happens. Neither it creates a Kubernetes pod nor does the status of the run change (it keeps saying "Unknown status"). I also cant see the belonging graph or run output. The code of my pipeline looks like this: import kfp from kfp import components from kfp import dsl from kfp import onprem import sys def train_op( epochs, validations,

Run Kubernetes api server in minikube in verbose mode

我怕爱的太早我们不能终老 提交于 2021-02-11 14:37:50
问题 Is it possible to run the kubernetes api-server in minikube with maximum log verbosity? $ minikube start --v 4 didn't work for me. When I exec into the api-server container and do ps, the api-server commandline didn't have --v=4 in it. So, minikube is not passing the --v = 4 down to the api-server. Thanks. 回答1: there is an error in the parameters, try this instead minikube start --v=7 来源: https://stackoverflow.com/questions/55929593/run-kubernetes-api-server-in-minikube-in-verbose-mode

Kubeflow pipeline doesnt create any pod; unknown status

跟風遠走 提交于 2021-02-11 14:35:35
问题 I started working with kubeflow and created a first, little pipeline. Unfortunately it doesn't work, so when I try to create a run with my pipeline nothing happens. Neither it creates a Kubernetes pod nor does the status of the run change (it keeps saying "Unknown status"). I also cant see the belonging graph or run output. The code of my pipeline looks like this: import kfp from kfp import components from kfp import dsl from kfp import onprem import sys def train_op( epochs, validations,

k8s:Two images but single container [duplicate]

被刻印的时光 ゝ 提交于 2021-02-11 14:33:03
问题 This question already has an answer here : Pod with multiple images (1 answer) Closed last month . Below are the exact words of a question that came up in an online test. Create an single container app running in a pod named "bla-bla" with any 3 of the four images listed below. Images: nginx + redis+ memcached. I'm not sure whether this is a wordplay or a typo but what I would like to know is whether there is any syntax for launching multiple images in a single container? I know this can be

Permission denied when connecting to docker daemon on jenkinsci/blueocean image deployed to kubernetes

萝らか妹 提交于 2021-02-11 14:32:57
问题 Summary Running a declarative pipeline job in jenkins which was deployed to a kubernetes cluster fails when using the docker agent with the following error: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=node&tag=10.15.1: dial unix /var/run/docker.sock: connect: permission denied How can I solve this permission error in the kubernetes declaration? Background We have