调整ca证书有效期等配置

pull/505/head
gjmzj 2019-03-30 11:57:52 +08:00
parent eca81279b7
commit 92ea99e677
7 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,9 @@
# CA 证书相关参数
CA_EXPIRY: "876000h"
CERT_EXPIRY: "438000h"
# kubeconfig 配置参数
CLUSTER_NAME: "cluster1"
USER_NAME: "user1"
CONTEXT_NAME: "context1"

View File

@ -1,7 +1,7 @@
{
"signing": {
"default": {
"expiry": "87600h"
"expiry": "{{ CERT_EXPIRY }}"
},
"profiles": {
"kubernetes": {
@ -11,7 +11,7 @@
"server auth",
"client auth"
],
"expiry": "87600h"
"expiry": "{{ CERT_EXPIRY }}"
}
}
}

View File

@ -14,6 +14,6 @@
}
],
"ca": {
"expiry": "131400h"
"expiry": "{{ CA_EXPIRY }}"
}
}

View File

@ -18,7 +18,6 @@
with_items:
- ca.pem
- ca-key.pem
- ca.csr
- ca-config.json
delegate_to: "{{ groups.deploy[0] }}"

View File

@ -29,7 +29,6 @@
with_items:
- ca.pem
- ca-key.pem
- ca.csr
- ca-config.json
delegate_to: "{{ groups.deploy[0] }}"

View File

@ -13,7 +13,6 @@
- admin-key.pem
- ca.pem
- ca-key.pem
- ca.csr
- ca-config.json
delegate_to: "{{ groups.deploy[0] }}"

View File

@ -44,7 +44,6 @@
with_items:
- ca.pem
- ca-key.pem
- ca.csr
- ca-config.json
delegate_to: "{{ groups.deploy[0] }}"