Removed hostname truncation. (#3409)
This commit is contained in:
@ -125,7 +125,7 @@ if [ -n "$MASTERS" ]; then
|
|||||||
gen_key_and_cert_front_proxy "front-proxy-client" "/CN=front-proxy-client"
|
gen_key_and_cert_front_proxy "front-proxy-client" "/CN=front-proxy-client"
|
||||||
|
|
||||||
for host in $MASTERS; do
|
for host in $MASTERS; do
|
||||||
cn="${host%%.*}"
|
cn="${host}"
|
||||||
# admin
|
# admin
|
||||||
gen_key_and_cert "admin-${host}" "/CN=kube-admin-${cn}/O=system:masters"
|
gen_key_and_cert "admin-${host}" "/CN=kube-admin-${cn}/O=system:masters"
|
||||||
done
|
done
|
||||||
@ -134,7 +134,7 @@ fi
|
|||||||
# Nodes
|
# Nodes
|
||||||
if [ -n "$HOSTS" ]; then
|
if [ -n "$HOSTS" ]; then
|
||||||
for host in $HOSTS; do
|
for host in $HOSTS; do
|
||||||
cn="${host%%.*}"
|
cn="${host}"
|
||||||
gen_key_and_cert "node-${host}" "/CN=system:node:${cn,,}/O=system:nodes"
|
gen_key_and_cert "node-${host}" "/CN=system:node:${cn,,}/O=system:nodes"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user