This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #58 from madalazar/master
Kubernetes Power Manager v2.3.1 release
- Loading branch information
Showing
14 changed files
with
385 additions
and
17 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
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
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,24 @@ | ||
apiVersion: v2 | ||
name: kubernetes-power-manager-v2.3.1 | ||
description: A Helm chart for Intel's Kubernetes Power Manager v2.3.1 | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 1.0.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "v2.3.1" |
62 changes: 62 additions & 0 deletions
62
helm/kubernetes-power-manager-v2.3.1/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,62 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "kubernetes-power-manager.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 "kubernetes-power-manager.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 "kubernetes-power-manager.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "kubernetes-power-manager.labels" -}} | ||
helm.sh/chart: {{ include "kubernetes-power-manager.chart" . }} | ||
{{ include "kubernetes-power-manager.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "kubernetes-power-manager.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "kubernetes-power-manager.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "kubernetes-power-manager.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "kubernetes-power-manager.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} |
47 changes: 47 additions & 0 deletions
47
helm/kubernetes-power-manager-v2.3.1/templates/deployment.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,47 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ .Values.operator.name }} | ||
namespace: {{ .Values.operator.namespace }} | ||
labels: | ||
control-plane: {{ .Values.operator.labels.controlplane }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
control-plane: {{ .Values.operator.labels.controlplane }} | ||
replicas: {{ .Values.operator.replicas }} | ||
template: | ||
metadata: | ||
labels: | ||
control-plane: {{ .Values.operator.labels.controlplane }} | ||
spec: | ||
serviceAccountName: {{ .Values.operator.container.serviceaccount.name }} | ||
containers: | ||
- command: | ||
- {{ .Values.operator.container.command }} | ||
args: | ||
- {{ .Values.operator.container.args }} | ||
imagePullPolicy: IfNotPresent | ||
image: {{ .Values.operator.container.image }} | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: ["ALL"] | ||
name: {{ .Values.operator.container.name }} | ||
resources: | ||
limits: | ||
cpu: {{ .Values.operator.container.cpu.limits }} | ||
memory: {{ .Values.operator.container.memory.limits }} | ||
requests: | ||
cpu: {{ .Values.operator.container.cpu.requests }} | ||
memory: {{ .Values.operator.container.memory.requests }} | ||
volumeMounts: | ||
- mountPath: /sys/fs | ||
name: cgroup | ||
mountPropagation: HostToContainer | ||
readOnly: true | ||
terminationGracePeriodSeconds: 10 | ||
volumes: | ||
- name: cgroup | ||
hostPath: | ||
path: /sys/fs |
6 changes: 6 additions & 0 deletions
6
helm/kubernetes-power-manager-v2.3.1/templates/namespace.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,6 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
labels: | ||
control-plane: {{ .Values.namespace.label }} | ||
name: {{ .Values.namespace.name }} |
12 changes: 12 additions & 0 deletions
12
helm/kubernetes-power-manager-v2.3.1/templates/power-config.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,12 @@ | ||
apiVersion: power.intel.com/v1 | ||
kind: PowerConfig | ||
metadata: | ||
name: {{ .Values.powerconfig.name }} | ||
namespace: {{ .Values.powerconfig.namespace }} | ||
spec: | ||
powerNodeSelector: | ||
feature.node.kubernetes.io/power-node: "true" | ||
powerProfiles: | ||
- "performance" | ||
- "balance-performance" | ||
- "balance-power" |
Oops, something went wrong.