-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'Changes for the Cluster API Cluster Autoscaler in…
…tegration done in KubeAid' (#15) from capi-cluster-autoscaler into main Reviewed-on: https://gitea.obmondo.com/EnableIT/kubeaid-bootstrap-script/pulls/15
- Loading branch information
Showing
8 changed files
with
75 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
cmd/bootstrap_cluster/templates/argocd-apps/cluster-autoscaler.values.yaml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cluster-autoscaler: | ||
cloudProvider: clusterapi | ||
|
||
# Cluster API mode : incluster-incluster / incluster-kubeconfig / kubeconfig-incluster / kubeconfig-kubeconfig / single-kubeconfig. | ||
# Syntax: workloadClusterMode-ManagementClusterMode | ||
# | ||
# For 'kubeconfig-kubeconfig', 'incluster-kubeconfig' and 'single-kubeconfig' you always must | ||
# mount the external kubeconfig using either 'extraVolumeSecrets' or 'extraMounts' and | ||
# 'extraVolumes'. | ||
# | ||
# If you dont set 'clusterAPIKubeconfigSecret'and thus use an in-cluster config or want to use a | ||
# non CAPI generated kubeconfig you must do so for the workload kubeconfig as well | ||
# | ||
# REFER : https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/clusterapi/README.md#connecting-cluster-autoscaler-to-cluster-api-management-and-workload-clusters | ||
clusterAPIMode: incluster-incluster | ||
|
||
autoDiscovery: | ||
clusterName: {{ .ClusterName }} | ||
namespace: {{ .CAPIClusterNamespace }} |
25 changes: 25 additions & 0 deletions
25
cmd/bootstrap_cluster/templates/argocd-apps/templates/cluster-autoscaler.yaml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: cluster-autoscaler | ||
namespace: argo-cd | ||
|
||
spec: | ||
destination: | ||
namespace: cluster-autoscaler | ||
server: https://kubernetes.default.svc | ||
sources: | ||
- repoURL: {{ .KubeaidForkURL }} | ||
path: argocd-helm-charts/cluster-autoscaler | ||
targetRevision: HEAD | ||
helm: | ||
valueFiles: | ||
- $values/k8s/{{ .ClusterName }}/argocd-apps/cluster-autoscaler.values.yaml | ||
- repoURL: {{ .KubeaidConfigForkURL }} | ||
targetRevision: HEAD | ||
ref: values | ||
project: default | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace=true | ||
- ApplyOutOfSyncOnly=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters