Initial commit from kro/examples/aws/eks-cluster-mgmt

This commit is contained in:
2026-04-21 09:55:53 -03:00
parent 0585444299
commit 7d11fd5889
66 changed files with 3667 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
Thank you for installing {{ .Chart.Name }}.
Your EKS Fleet clusters have been configured with the following details:
{{- range $name, $cluster := .Values.clusters }}
Cluster: {{ $name }}
- Tenant: {{ $cluster.tenant }}
- K8s Version: {{ $cluster.k8sVersion }}
- Domain: {{ $cluster.domainName }}
{{- end }}
To manage your clusters:
1. Edit the values.yaml file to add, modify, or remove cluster configurations
2. Use helm upgrade to apply changes:
helm upgrade <release-name> ./chart
To verify the cluster resources:
kubectl get eksclusterwithvpc
For more information about the chart and available configuration options,
please refer to the chart's documentation.
@@ -0,0 +1,42 @@
{{- range $name, $cluster := .Values.clusters }}
---
apiVersion: kro.run/v1alpha1
kind: EksCluster
metadata:
name: {{ $name }}
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: "1"
spec:
name: {{ $name }}
tenant: {{ $cluster.tenant | default "tenant1" | quote }}
environment: {{ $cluster.environment | default "staging" | quote }}
region: {{ $cluster.region | default "us-west-2" | quote }}
k8sVersion: {{ $cluster.k8sVersion | default "1.32" | quote }}
accountId: {{ $cluster.accountId | quote }}
managementAccountId: {{ $cluster.managementAccountId | quote }}
adminRoleName: {{ $cluster.adminRoleName | default "Admin" | quote }}
fleetSecretManagerSecretNameSuffix: {{ $cluster.fleetSecretManagerSecretNameSuffix | default "argocd-secret" | quote }}
domainName: {{ $cluster.domainName | default "" | quote }}
workloads: {{ $cluster.workloads | default "false" | quote }}
{{- if $cluster.subHostedZone | quote }}
subHostedZone:
{{- toYaml $cluster.subHostedZone | nindent 4 }}
{{- end }}
{{- if $cluster.vpc | quote}}
vpc:
{{- toYaml $cluster.vpc | nindent 4 }}
{{- end }}
{{- if $cluster.gitops }}
gitops:
{{- toYaml $cluster.gitops | nindent 4 }}
{{- else }}
gitops: {}
{{- end }}
{{- if $cluster.addons }}
addons:
{{- toYaml $cluster.addons | nindent 4 }}
{{- else }}
addons: {}
{{- end }}
{{- end }}