helm添加国内repo url

pull/224/head
lusyoe 2018-05-31 12:29:20 +08:00 committed by gjmzj
parent f3b788a3e9
commit 7da2a40bd8
3 changed files with 6 additions and 3 deletions

View File

@ -3,3 +3,4 @@ helm_cert_cn: helm001
tiller_sa: tiller
tiller_cert_cn: tiller001
tiller_image: jmgao1983/tiller:v2.9.1
repo_url: https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

View File

@ -7,3 +7,4 @@
tiller_sa: tiller
tiller_cert_cn: tiller001
tiller_image: jmgao1983/tiller:v2.9.1
repo_url: https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

View File

@ -22,10 +22,10 @@
-profile=kubernetes {{ tiller_cert_cn }}-csr.json | {{ bin_dir }}/cfssljson -bare {{ tiller_cert_cn }}"
- name: 准备rbac配置
template: src=helm-rbac.yaml.j2 dest=~/helm-rbac.yaml
template: src=helm-rbac.yaml.j2 dest=./helm-rbac.yaml
- name: 在k8s上创建rbac
shell: "{{ bin_dir }}/kubectl apply -f ~/helm-rbac.yaml"
shell: "{{ bin_dir }}/kubectl apply -f ./helm-rbac.yaml"
ignore_errors: true
- name: 安装tiller
@ -37,7 +37,8 @@
--tls-ca-cert {{ ca_dir }}/ca.pem \
--service-account {{ tiller_sa }} \
--tiller-namespace {{ helm_namespace }} \
--tiller-image {{ tiller_image }}"
--tiller-image {{ tiller_image }} \
--stable-repo-url {{ repo_url }}"
ignore_errors: true
- name: 配置helm客户端