-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: michal.gubricky <[email protected]>
- Loading branch information
1 parent
eaf71f4
commit d1b6f75
Showing
1,266 changed files
with
505,610 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
example/cluster-stacks/openstack/ferrol/cluster-addon-values.yaml
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,5 @@ | ||
values: | | ||
metrics-server: | ||
commonLabels: | ||
domain: "{{ .Cluster.spec.controlPlaneEndpoint.host }}" | ||
clusterAddonVersion: "v2" |
23 changes: 23 additions & 0 deletions
23
example/cluster-stacks/openstack/ferrol/cluster-addon/.helmignore
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
6 changes: 6 additions & 0 deletions
6
example/cluster-stacks/openstack/ferrol/cluster-addon/Chart.lock
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,6 @@ | ||
dependencies: | ||
- name: metrics-server | ||
repository: https://kubernetes-sigs.github.io/metrics-server/ | ||
version: 3.11.0 | ||
digest: sha256:d92caa34d06b047b0390aa33a6f5d15d4fe0566143625204ebbbc69085133c4e | ||
generated: "2023-09-12T12:02:23.747094767+02:00" |
14 changes: 14 additions & 0 deletions
14
example/cluster-stacks/openstack/ferrol/cluster-addon/Chart.yaml
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,14 @@ | ||
apiVersion: v2 | ||
dependencies: | ||
- alias: metrics-server | ||
name: metrics-server | ||
repository: https://kubernetes-sigs.github.io/metrics-server/ | ||
version: 3.11.0 | ||
description: 'This chart installs and configures: * Openstack Ferrol Cluster Class ' | ||
maintainers: | ||
- email: [email protected] | ||
name: Syself | ||
url: https://github.com/syself | ||
name: openstack-ferrol-1-27-cluster-addon | ||
type: application | ||
version: << .ClusterAddonVersion >> |
23 changes: 23 additions & 0 deletions
23
example/cluster-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/.helmignore
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
32 changes: 32 additions & 0 deletions
32
example/cluster-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/Chart.yaml
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,32 @@ | ||
annotations: | ||
artifacthub.io/changes: | | ||
- kind: added | ||
description: "Added default Metrics Server resource requests." | ||
- kind: changed | ||
description: "Updated the Metrics Server OCI image to v0.6.3." | ||
- kind: changed | ||
description: "Updated the addon resizer OCI image to v1.8.19." | ||
- kind: changed | ||
description: "Changed the default addon resizer nanny resource configuration to match the documented Metrics Server autoscaling values." | ||
apiVersion: v2 | ||
appVersion: 0.6.4 | ||
description: Metrics Server is a scalable, efficient source of container resource | ||
metrics for Kubernetes built-in autoscaling pipelines. | ||
home: https://github.com/kubernetes-sigs/metrics-server | ||
icon: https://avatars.githubusercontent.com/u/36015203?s=400&v=4 | ||
keywords: | ||
- kubernetes | ||
- metrics-server | ||
- metrics | ||
maintainers: | ||
- name: stevehipwell | ||
url: https://github.com/stevehipwell | ||
- name: krmichel | ||
url: https://github.com/krmichel | ||
- name: endrec | ||
url: https://github.com/endrec | ||
name: metrics-server | ||
sources: | ||
- https://github.com/kubernetes-sigs/metrics-server | ||
type: application | ||
version: 3.11.0 |
90 changes: 90 additions & 0 deletions
90
...e/cluster-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/README.md
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...ple/cluster-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/ci/ci-values.yaml
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,2 @@ | ||
args: | ||
- --kubelet-insecure-tls |
7 changes: 7 additions & 0 deletions
7
...e/cluster-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/NOTES.txt
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,7 @@ | ||
*********************************************************************** | ||
* Metrics Server * | ||
*********************************************************************** | ||
Chart version: {{ .Chart.Version }} | ||
App version: {{ .Chart.AppVersion }} | ||
Image tag: {{ include "metrics-server.image" . }} | ||
*********************************************************************** |
102 changes: 102 additions & 0 deletions
102
...luster-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/_helpers.tpl
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,102 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "metrics-server.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "metrics-server.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "metrics-server.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "metrics-server.labels" -}} | ||
helm.sh/chart: {{ include "metrics-server.chart" . }} | ||
{{ include "metrics-server.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- if .Values.commonLabels }} | ||
{{ toYaml .Values.commonLabels }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "metrics-server.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "metrics-server.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "metrics-server.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "metrics-server.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
The image to use | ||
*/}} | ||
{{- define "metrics-server.image" -}} | ||
{{- printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) .Values.image.tag) }} | ||
{{- end }} | ||
|
||
{{/* | ||
The image to use for the addon resizer | ||
*/}} | ||
{{- define "metrics-server.addonResizer.image" -}} | ||
{{- printf "%s:%s" .Values.addonResizer.image.repository .Values.addonResizer.image.tag }} | ||
{{- end }} | ||
|
||
{{/* | ||
ConfigMap name of addon resizer | ||
*/}} | ||
{{- define "metrics-server.addonResizer.configMap" -}} | ||
{{- printf "%s-%s" (include "metrics-server.fullname" .) "nanny-config" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Role name of addon resizer | ||
*/}} | ||
{{- define "metrics-server.addonResizer.role" -}} | ||
{{ printf "system:%s-nanny" (include "metrics-server.fullname" .) }} | ||
{{- end }} | ||
|
||
{{/* Get PodDisruptionBudget API Version */}} | ||
{{- define "metrics-server.pdb.apiVersion" -}} | ||
{{- if and (.Capabilities.APIVersions.Has "policy/v1") (semverCompare ">= 1.21-0" .Capabilities.KubeVersion.Version) -}} | ||
{{- print "policy/v1" -}} | ||
{{- else -}} | ||
{{- print "policy/v1beta1" -}} | ||
{{- end -}} | ||
{{- end -}} |
25 changes: 25 additions & 0 deletions
25
...ter-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/apiservice.yaml
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 @@ | ||
{{- if .Values.apiService.create -}} | ||
apiVersion: apiregistration.k8s.io/v1 | ||
kind: APIService | ||
metadata: | ||
name: v1beta1.metrics.k8s.io | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
{{- with .Values.apiService.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.apiService.caBundle }} | ||
caBundle: {{ b64enc . }} | ||
{{- end }} | ||
group: metrics.k8s.io | ||
groupPriorityMinimum: 100 | ||
insecureSkipTLSVerify: {{ .Values.apiService.insecureSkipTLSVerify }} | ||
service: | ||
name: {{ include "metrics-server.fullname" . }} | ||
namespace: {{ .Release.Namespace }} | ||
port: {{ .Values.service.port }} | ||
version: v1beta1 | ||
versionPriority: 100 | ||
{{- end -}} |
21 changes: 21 additions & 0 deletions
21
...k/ferrol/cluster-addon/charts/metrics-server/templates/clusterrole-aggregated-reader.yaml
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,21 @@ | ||
{{- if .Values.rbac.create -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ printf "system:%s-aggregated-reader" (include "metrics-server.name" .) }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
rbac.authorization.k8s.io/aggregate-to-admin: "true" | ||
rbac.authorization.k8s.io/aggregate-to-edit: "true" | ||
rbac.authorization.k8s.io/aggregate-to-view: "true" | ||
rules: | ||
- apiGroups: | ||
- metrics.k8s.io | ||
resources: | ||
- pods | ||
- nodes | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- end -}} |
13 changes: 13 additions & 0 deletions
13
...cks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/clusterrole-nanny.yaml
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,13 @@ | ||
{{- if and .Values.rbac.create .Values.addonResizer.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ printf "system:%s-nanny" (include "metrics-server.fullname" .) }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
rules: | ||
- nonResourceURLs: | ||
- /metrics | ||
verbs: | ||
- get | ||
{{- end -}} |
37 changes: 37 additions & 0 deletions
37
...er-stacks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/clusterrole.yaml
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,37 @@ | ||
{{- if .Values.rbac.create -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ printf "system:%s" (include "metrics-server.fullname" .) }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- nodes/metrics | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
- nodes | ||
- namespaces | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
{{- if .Values.rbac.pspEnabled }} | ||
- apiGroups: | ||
- extensions | ||
- policy | ||
resources: | ||
- podsecuritypolicies | ||
resourceNames: | ||
- {{ printf "privileged-%s" (include "metrics-server.fullname" .) }} | ||
verbs: | ||
- use | ||
{{- end -}} | ||
{{- end -}} |
16 changes: 16 additions & 0 deletions
16
...rrol/cluster-addon/charts/metrics-server/templates/clusterrolebinding-auth-delegator.yaml
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,16 @@ | ||
{{- if .Values.rbac.create -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ printf "%s:system:auth-delegator" (include "metrics-server.fullname" .) }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:auth-delegator | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "metrics-server.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end -}} |
18 changes: 18 additions & 0 deletions
18
...nstack/ferrol/cluster-addon/charts/metrics-server/templates/clusterrolebinding-nanny.yaml
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,18 @@ | ||
{{- if .Values.rbac.create -}} | ||
{{- if .Values.addonResizer.enabled -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ printf "system:%s-nanny" (include "metrics-server.fullname" .) }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:{{ template "metrics-server.fullname" . }}-nanny | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "metrics-server.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end -}} | ||
{{- end -}} |
16 changes: 16 additions & 0 deletions
16
...ks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/clusterrolebinding.yaml
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,16 @@ | ||
{{- if .Values.rbac.create -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ printf "system:%s" (include "metrics-server.fullname" .) }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: system:{{ template "metrics-server.fullname" . }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "metrics-server.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end -}} |
17 changes: 17 additions & 0 deletions
17
...acks/openstack/ferrol/cluster-addon/charts/metrics-server/templates/configmaps-nanny.yaml
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,17 @@ | ||
{{- if .Values.addonResizer.enabled -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "metrics-server.addonResizer.configMap" . }} | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "metrics-server.labels" . | nindent 4 }} | ||
data: | ||
NannyConfiguration: |- | ||
apiVersion: nannyconfig/v1alpha1 | ||
kind: NannyConfiguration | ||
baseCPU: {{ .Values.addonResizer.nanny.cpu }} | ||
cpuPerNode: {{ .Values.addonResizer.nanny.extraCpu }} | ||
baseMemory: {{ .Values.addonResizer.nanny.memory }} | ||
memoryPerNode: {{ .Values.addonResizer.nanny.extraMemory }} | ||
{{- end -}} |
Oops, something went wrong.