Initial commit from kro/examples/aws/eks-cluster-mgmt
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: eks-fleet-clusters
|
||||
description: A Helm chart for managing EKS Fleet clusters
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
@@ -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 }}
|
||||
Reference in New Issue
Block a user