kubernetes-helm

Kubernetes Helm: not a valid chart repository

时光怂恿深爱的人放手 提交于 2021-02-07 19:55:45
问题 According to cert-manager installation docs jetstack repository should be added: $ helm repo add jetstack https://charts.jetstack.io It gives error message: Error: looks like "https://charts.jetstack.io" is not a valid chart repository or cannot be reached: error unmarshaling JSON: while decoding JSON: json: unknown field "serverInfo" What are the ways to fix the issue? 回答1: This looks to be caused by a patch done in Version 3.3.2 of Helm for security based issues. Reference Issue: https:/

Helm - Templating variables in values.yaml

泄露秘密 提交于 2021-02-07 13:01:22
问题 I'm trying to template variables from a map inside the values.yaml into my final Kubernetes ConfigMap YAML. I've read through https://github.com/helm/helm/issues/2492 and https://helm.sh/docs/chart_template_guide/ but can't seem to find an answer. For some context, this is roughly what I'm trying to do: values.yaml config: key1: value key2: value-{{ .Release.Name }} configmap.yaml kind: ConfigMap data: config-file: | {{- range $key, $value := .Values.config }} {{ $key }} = {{ $value }} {{-

Helm - Templating variables in values.yaml

给你一囗甜甜゛ 提交于 2021-02-07 13:01:11
问题 I'm trying to template variables from a map inside the values.yaml into my final Kubernetes ConfigMap YAML. I've read through https://github.com/helm/helm/issues/2492 and https://helm.sh/docs/chart_template_guide/ but can't seem to find an answer. For some context, this is roughly what I'm trying to do: values.yaml config: key1: value key2: value-{{ .Release.Name }} configmap.yaml kind: ConfigMap data: config-file: | {{- range $key, $value := .Values.config }} {{ $key }} = {{ $value }} {{-

How to add custom port for istio ingress gateway?

≡放荡痞女 提交于 2021-02-07 04:11:23
问题 I'm new to istio. I have a simple ingress gateway yaml file, and the listenling port is 26931, but after I applied the yaml, the port 26931 does not appear in the set of ports which ingress gateway expose. So am I lack of some necessary step or something else? apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: batman-gateway spec: selector: istio: ingressgateway servers: - port: number: 26931 name: http protocol: HTTP hosts: - "*" 回答1: You are exposing ports not with

How to add custom port for istio ingress gateway?

折月煮酒 提交于 2021-02-07 04:07:30
问题 I'm new to istio. I have a simple ingress gateway yaml file, and the listenling port is 26931, but after I applied the yaml, the port 26931 does not appear in the set of ports which ingress gateway expose. So am I lack of some necessary step or something else? apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: batman-gateway spec: selector: istio: ingressgateway servers: - port: number: 26931 name: http protocol: HTTP hosts: - "*" 回答1: You are exposing ports not with

helm chart with requirements.yaml, did not find local charts

*爱你&永不变心* 提交于 2021-02-07 02:53:01
问题 my charts has elasticsearch and mongdb dependencies, and in my charts, the structure like this: ├── [-rw-rw-r--] Chart.yaml ├── [drwxrwxr-x] dependency_charts │ ├── [drwxrwxr-x] elasticsearch │ └── [drwxrwxr-x] mongodb ├── [-rw-rw-r--] deploy.sh ├── [-rw-rw-r--] requirements.yaml ├── [-rw-rw-r--] values.yaml ├── [drwxrwxr-x] templates │ ├── [-rw-rw-r--] proj-deploy.yaml │ └── [-rw-rw-r--] proj-svc.yaml but when I try to install my chart, it will say: Error: found in requirements.yaml, but

helm chart with requirements.yaml, did not find local charts

霸气de小男生 提交于 2021-02-07 02:49:39
问题 my charts has elasticsearch and mongdb dependencies, and in my charts, the structure like this: ├── [-rw-rw-r--] Chart.yaml ├── [drwxrwxr-x] dependency_charts │ ├── [drwxrwxr-x] elasticsearch │ └── [drwxrwxr-x] mongodb ├── [-rw-rw-r--] deploy.sh ├── [-rw-rw-r--] requirements.yaml ├── [-rw-rw-r--] values.yaml ├── [drwxrwxr-x] templates │ ├── [-rw-rw-r--] proj-deploy.yaml │ └── [-rw-rw-r--] proj-svc.yaml but when I try to install my chart, it will say: Error: found in requirements.yaml, but

How to SSH into a Kubernetes Node or Server

痞子三分冷 提交于 2021-02-06 15:24:42
问题 How to SSH into a Kubernetes Node or Server hosted on AWS? I have hosted a Kubernetes Server and Node on AWS. I'm able to see the nodes and server from my local laptop with the kubectl get node command. I need to create a persistent volume for my node but I'm unable to ssh into it. Is there any specific way to ssh into the node or server? 回答1: Try this: ssh -i <path of the private key file> admin@<ip of the aws kube instances> The perm file should be in $HOME/.ssh/kube_rsa 回答2: Kubernetes

Running a ECR image locally with helm and Kubernetes

南楼画角 提交于 2021-02-04 21:35:44
问题 I'm new to Kubernetes and as a tutorial for myself I've been working on deploying a basic project to Kubernetes with helm (v3). I have an image in AWS's ECR as well as a local helm chart for this project. However, I am struggling to run my image with Kubernetes. My image is set up correctly. If I try something like docker run my_image_in_ecr locally it behaves as expected (after configuring my IAM access credentials locally). My helm chart is properly linted and in my image map, it specifies:

How to run Postman test cases by helm and rollback to last successful version if any test fail

风流意气都作罢 提交于 2021-01-29 11:17:11
问题 I am using Helm kubernetes deployment and I want to run the postman test cases before a final deployment, and if any test case fails then rollback (or retain the current deployment like Blue-Green deployment). How to achieve this? 回答1: I achieved the expected behavior with Helm Chart Tests and the postman/newman Docker image. My Helm template for the test execution: apiVersion: v1 kind: Pod metadata: name: API Test annotations: "helm.sh/hook": test-success spec: containers: - name: