diff --git a/.github/workflows/post_tests.yml b/.github/workflows/post_tests.yml index d2e13042e..0b64586f1 100644 --- a/.github/workflows/post_tests.yml +++ b/.github/workflows/post_tests.yml @@ -90,6 +90,7 @@ jobs: ( echo "" echo '```' + echo "export AWS_DEFAULT_REGION=\"${AWS_DEFAULT_REGION}\"" # shellcheck disable=SC2028 echo "eval \"\$(aws sts assume-role --role-arn \"\${AWS_ROLE_TO_ASSUME}\" --role-session-name \"\$USER@\$(hostname -f)-k8s-\$(date +%s)\" --duration-seconds 36000 | jq -r '.Credentials | \"export AWS_ACCESS_KEY_ID=\(.AccessKeyId)\\nexport AWS_SECRET_ACCESS_KEY=\(.SecretAccessKey)\\nexport AWS_SESSION_TOKEN=\(.SessionToken)\\n\"')\"" echo "export KUBECONFIG=\"/tmp/kubeconfig-${CLUSTER_NAME}.conf\"" diff --git a/_posts/2024/2024-12-14-secure-cheap-amazon-eks-auto.md b/_posts/2024/2024-12-14-secure-cheap-amazon-eks-auto.md index 2a031a2e0..3f3082f75 100644 --- a/_posts/2024/2024-12-14-secure-cheap-amazon-eks-auto.md +++ b/_posts/2024/2024-12-14-secure-cheap-amazon-eks-auto.md @@ -14,11 +14,9 @@ tags: eksctl, cert-manager, external-dns, - podinfo, prometheus, sso, oauth2-proxy, - metrics-server, ] image: https://raw.githubusercontent.com/aws-samples/eks-workshop/65b766c494a5b4f5420b2912d8373c4957163541/static/images/icon-aws-amazon-eks.svg --- @@ -421,8 +419,9 @@ spec: $(kubectl get nodeclasses default -o yaml | yq '.spec | pick(["role", "securityGroupSelectorTerms", "subnetSelectorTerms"])' | sed 's/\(.*\)/ \1/') ephemeralStorage: size: 20Gi - tags: - Name: ${CLUSTER_NAME} + # https://github.com/eksctl-io/eksctl/issues/8136 + # tags: + # Name: ${CLUSTER_NAME} EOF ``` @@ -1084,7 +1083,7 @@ and modify the ```bash # renovate: datasource=helm depName=oauth2-proxy registryUrl=https://oauth2-proxy.github.io/manifests -OAUTH2_PROXY_HELM_CHART_VERSION="7.8.2" +OAUTH2_PROXY_HELM_CHART_VERSION="7.9.2" helm repo add oauth2-proxy https://oauth2-proxy.github.io/manifests cat > "${TMP_DIR}/${CLUSTER_FQDN}/helm_values-oauth2-proxy.yml" << EOF @@ -1117,6 +1116,44 @@ EOF helm upgrade --install --version "${OAUTH2_PROXY_HELM_CHART_VERSION}" --namespace oauth2-proxy --create-namespace --values "${TMP_DIR}/${CLUSTER_FQDN}/helm_values-oauth2-proxy.yml" oauth2-proxy oauth2-proxy/oauth2-proxy ``` +### Homepage + +Install [homepage](https://gethomepage.dev/) to have a nice dashboard. + +Install `homepage` +[helm chart](https://github.com/jameswynn/helm-charts/tree/homepage-2.0.1/charts/homepage) +and modify the +[default values](https://github.com/jameswynn/helm-charts/blob/homepage-2.0.1/charts/homepage/values.yaml). + +```bash +# renovate: datasource=helm depName=homepage registryUrl=http://jameswynn.github.io/helm-charts +HOMEPAGE_HELM_CHART_VERSION="2.0.1" + +helm repo add jameswynn http://jameswynn.github.io/helm-charts +cat > "${TMP_DIR}/${CLUSTER_FQDN}/helm_values-homepage.yml" << EOF +ingress: + main: + enabled: true + labels: + gethomepage.dev/enabled: "true" + annotations: + gethomepage.dev/name: "Homepage" + gethomepage.dev/description: "A modern, secure, highly customizable application dashboard." + gethomepage.dev/group: "A New Group" + gethomepage.dev/icon: "homepage.png" + ingressClassName: "nginx" + hosts: + - host: ${CLUSTER_FQDN} + paths: + - path: / + pathType: Prefix + tls: + - hosts: + - ${CLUSTER_FQDN} +EOF +helm upgrade --install --version "${HOMEPAGE_HELM_CHART_VERSION}" --namespace homepage --create-namespace --values "${TMP_DIR}/${CLUSTER_FQDN}/helm_values-homepage.yml" homepage jameswynn/homepage +``` + ## Clean-up ![Clean-up](https://raw.githubusercontent.com/aws-samples/eks-workshop/65b766c494a5b4f5420b2912d8373c4957163541/static/images/cleanup.svg){:width="300"}