mirror of https://github.com/easzlab/kubeasz.git
helm添加国内repo url
parent
f3b788a3e9
commit
7da2a40bd8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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客户端
|
||||
|
|
Loading…
Reference in New Issue