-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_letsencrypt.sh
executable file
·38 lines (27 loc) · 1.58 KB
/
setup_letsencrypt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
. ./kubeflow.env
if [[ -z "${OCI_KUBEFLOW_DOMAIN_NAME}" ]];
then
read -pr "Domain Name: " OCI_KUBEFLOW_DOMAIN_NAME
fi;
DEFAULT_DOMAIN_ADMIN_EMAIL="admin@${OCI_KUBEFLOW_DOMAIN_NAME}"
if [[ -z "${OCI_KUBEFLOW_DOMAIN_ADMIN_EMAIL}" ]];
then
read -pr "Domain Name Admin Email (defaults to ${DEFAULT_DOMAIN_ADMIN_EMAIL}) " DOMAIN_ADMIN_EMAIL
fi;
if [[ -z "${DOMAIN_ADMIN_EMAIL}" ]];
then
export OCI_KUBEFLOW_DOMAIN_ADMIN_EMAIL=${DEFAULT_DOMAIN_ADMIN_EMAIL}
fi;
export OCI_KUBEFLOW_DOMAIN_NAME
export OCI_KUBEFLOW_DOMAIN_ADMIN_EMAIL
eval "echo \"$(cat ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-http01/kubeflow-gw.Certificate.tmpl.yaml)\"" \
> ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-http01/kubeflow-gw.Certificate.yaml
eval "echo \"$(cat ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-http01/letsencrypt.ClusterIssuer.tmpl.yaml)\"" \
> ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-http01/letsencrypt.ClusterIssuer.yaml
eval "echo \"$(cat ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-dns01/kubeflow-gw.Certificate.tmpl.yaml)\"" \
> ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-dns01/kubeflow-gw.Certificate.yaml
eval "echo \"$(cat ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-dns01/letsencrypt.ClusterIssuer.tmpl.yaml)\"" \
> ./oci/common/istio/kubeflow-istio-resources/overlays/letsencrypt-dns01/letsencrypt.ClusterIssuer.yaml
eval "echo \"$(cat ./oci/apps/kserve/domain/config-domain.tmpl.yaml)\"" \
> ./oci/apps/kserve/domain/config-domain.yaml