Skip to content

Commit 6df8acb

Browse files
committed
cert-manager and external-dns
1 parent 4e890e2 commit 6df8acb

21 files changed

Lines changed: 161 additions & 18 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export MOD=""
5959
export MOD_TAG=$(if [ "$MOD" == "" ]; then echo ""; else echo "-${MOD}"; fi)
6060
## VERSION: [optional] - Version tag for this Docker image. Example: v20180302
6161
#export VERSION=v$(date +%Y%m%d)
62-
export VERSION=v20250514
62+
export VERSION=v20250516
6363
export TAG=$(if [ -z "${VERSION}" ]; then echo ":latest${MOD_TAG}"; else echo ":${VERSION}${MOD_TAG}"; fi)
6464
## BUILD_OPTS: [optional] - arguments for the docker image build command
6565
export BUILD_OPTS="--progress plain --build-arg http_proxy=${http_proxy} --build-arg https_proxy=${https_proxy} --build-arg no_proxy=${no_proxy} --build-arg MOD=${MOD}"

Container-Root/hyperpod/deployment/.gitkeep

Whitespace-only changes.
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
clusterissuer.yaml
2-
letsencrypt.yaml
2+
letsencrypt-app.yaml
3+
certificate.yaml
4+
*.crt
5+
*.key

Container-Root/hyperpod/deployment/eks/cert-manager/letsencrypt/cert-export.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,17 @@ else
1818
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
1919
export SECRET_NAME=$(eval "$CMD")
2020

21-
CMD="kubectl get secret ${SECRET_NAME} -o json -o=jsonpath='{.data.tls\.crt}' | base64 -d | tee ${CERTIFICATE_NAME}.crt"
21+
CMD="kubectl get secret ${SECRET_NAME} -o json -o=jsonpath='{.data.tls\.crt}' | base64 -d | tee ${CERTIFICATE_NAME}-chain.crt"
2222
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
2323
eval "$CMD"
2424

2525
CMD="kubectl get secret ${SECRET_NAME} -o json -o=jsonpath='{.data.tls\.key}' | base64 -d | tee ${CERTIFICATE_NAME}.key"
2626
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
2727
eval "$CMD"
28+
29+
CMD="cat ${CERTIFICATE_NAME}-chain.crt | sed '/BEGIN/,/END/!d;/END/q' | tee ${CERTIFICATE_NAME}.crt"
30+
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
31+
eval "$CMD"
2832
fi
2933

3034
echo ""

Container-Root/hyperpod/deployment/eks/cert-manager/letsencrypt/cert-list.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,27 @@
22

33
# List certificates
44

5-
CMD="kubectl get certificate"
6-
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
7-
eval "$CMD"
5+
usage() {
6+
echo ""
7+
echo "Usage: $0 [DNS_NAME]"
8+
echo ""
9+
echo "DNS_NAME - optional, list certificates for the specified DNS name only"
10+
echo ""
11+
}
12+
13+
if [ "$1" == "--help" ]; then
14+
usage
15+
else
16+
17+
if [ "$1" == "" ]; then
18+
CMD="kubectl get certificate"
19+
else
20+
CERT_NAME=$(echo $1 | sed -e 's/\./-/g')
21+
CMD="kubectl get certificate | grep ${CERT_NAME}"
22+
fi
23+
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
24+
eval "$CMD"
25+
fi
826

927
echo ""
1028

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
certificate.yaml
22
selfsigned-app.yaml
3-
3+
*.crt
4+
*.key

Container-Root/hyperpod/deployment/eks/cert-manager/selfsigned/cert-list.sh

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,27 @@
22

33
# List certificates
44

5-
CMD="kubectl get certificate"
6-
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
7-
eval "$CMD"
5+
usage() {
6+
echo ""
7+
echo "Usage: $0 [DNS_NAME]"
8+
echo ""
9+
echo "DNS_NAME - optional, list certificates for the specified DNS name only"
10+
echo ""
11+
}
12+
13+
if [ "$1" == "--help" ]; then
14+
usage
15+
else
16+
17+
if [ "$1" == "" ]; then
18+
CMD="kubectl get certificate"
19+
else
20+
CERT_NAME=$(echo $1 | sed -e 's/\./-/g')
21+
CMD="kubectl get certificate | grep ${CERT_NAME}"
22+
fi
23+
if [ ! "$verbose" == "false" ]; then echo -e "\n${CMD}\n"; fi
24+
eval "$CMD"
25+
fi
826

927
echo ""
1028

Container-Root/hyperpod/deployment/eks/cloudwatch-observability/deploy.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22

3-
pushd ../../..
4-
EKS_CLUSTER_NAME=$(./hyperpod-describe.sh | tail -n +6 | jq -r .Orchestrator.Eks.ClusterArn | cut -d '/' -f 2)
5-
popd
3+
EKS_CLUSTER_NAME=$(kubectl config current-context | cut -d '/' -f 2)
64

75
CMD="aws eks create-addon --addon-name amazon-cloudwatch-observability --cluster-name $EKS_CLUSTER_NAME"
86

Container-Root/hyperpod/deployment/eks/cloudwatch-observability/remove.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/bash
22

3-
pushd ../../..
4-
EKS_CLUSTER_NAME=$(./hyperpod-describe.sh | tail -n +6 | jq -r .Orchestrator.Eks.ClusterArn | cut -d '/' -f 2)
5-
popd
3+
EKS_CLUSTER_NAME=$(kubectl config current-context | cut -d '/' -f 2)
64

75
CMD="aws eks delete-addon --addon-name amazon-cloudwatch-observability --cluster-name $EKS_CLUSTER_NAME"
86

Container-Root/hyperpod/deployment/eks/cert-manager/domain-create.sh renamed to Container-Root/hyperpod/deployment/eks/external-dns/domain-create.sh

File renamed without changes.

0 commit comments

Comments
 (0)