13 lines
607 B
Bash
Executable File
13 lines
607 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
echo "Installing cert-manager ..."
|
|
cd common/cert-manager
|
|
kubectl create namespace cert-manager
|
|
kustomize build cert-manager/base | kubectl apply -f -
|
|
|
|
echo "Waiting for cert-manager to be ready ..."
|
|
kubectl wait --for=condition=ready pod -l 'app in (cert-manager,webhook)' --timeout=180s -n cert-manager
|
|
kubectl wait --for=jsonpath='{.subsets[0].addresses[0].targetRef.kind}'=Pod endpoints -l 'app in (cert-manager,webhook)' --timeout=180s -n cert-manager
|
|
|
|
echo "Deploy clusterissuer.cert-manager.io/kubeflow-self-signing-issuer"
|
|
kustomize build kubeflow-issuer/base | kubectl apply -f - |