88d18fa126
Note: 1. As per the latest conclusion, Dex and SIPCluster would be deployed on same namespace, hence dex function added to same Kustomization file 2. As a part of Issue# 136 for catalogue, there would be another patchset to make nodeport flexible Change-Id: I53b2bb33278dd229450c305ad2e15476d8796073
56 lines
1.5 KiB
JSON
56 lines
1.5 KiB
JSON
[
|
|
{
|
|
"op": "add",
|
|
"path": "/spec/kubeadmConfigSpec/clusterConfiguration/apiServer",
|
|
"value": {
|
|
"extraArgs":
|
|
{
|
|
"oidc-ca-file": "/etc/kubernetes/certs/dex-cert",
|
|
"oidc-client-id": "function-kubernetes",
|
|
"oidc-groups-claim": "group",
|
|
"oidc-issuer-url": "https://dex.function.local:30556/dex",
|
|
"oidc-username-claim": "email"
|
|
},
|
|
"extraVolumes":
|
|
[
|
|
{
|
|
"hostPath": "/etc/kubernetes/certs/dex-cert",
|
|
"mountPath": "/etc/kubernetes/certs/dex-cert",
|
|
"name": "dex-cert",
|
|
"readOnly": true
|
|
}
|
|
],
|
|
"certSANs":
|
|
[
|
|
"dex.function.local",
|
|
"dex.baremetal.local"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"op": "add",
|
|
"path": "/spec/kubeadmConfigSpec/files/-",
|
|
"value": {
|
|
"contentFrom": {
|
|
"secret": {
|
|
"key": "tls.crt",
|
|
"name": "dex-apiserver-secret"
|
|
}
|
|
},
|
|
"owner": "root:root",
|
|
"path": "/etc/kubernetes/certs/dex-cert",
|
|
"permissions": "0644"
|
|
}
|
|
},
|
|
{
|
|
"op": "add",
|
|
"path": "/spec/kubeadmConfigSpec/preKubeadmCommands/-",
|
|
"value": "echo '10.23.25.102 dex.baremetal.local' | tee -a /etc/hosts"
|
|
},
|
|
{
|
|
"op": "add",
|
|
"path": "/spec/kubeadmConfigSpec/preKubeadmCommands/-",
|
|
"value": "echo '10.23.25.102 dex.function.local' | tee -a /etc/hosts"
|
|
}
|
|
]
|