-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
charts: add webhook to node-disk-manager
Signed-off-by: Vicente Cheng <vicente.cheng@suse.com>
- Loading branch information
1 parent
41a1c4c
commit d86707d
Showing
5 changed files
with
117 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "harvester-node-disk-manager-webhook.labels" . | nindent 4 }} | ||
name: harvester-node-disk-manager-webhook | ||
spec: | ||
replicas: {{ .Values.webhook.replicas }} | ||
selector: | ||
matchLabels: | ||
{{- include "harvester-node-disk-manager-webhook.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "harvester-node-disk-manager-webhook.labels" . | nindent 8 }} | ||
spec: | ||
serviceAccountName: harvester-node-disk-manager-webhook | ||
containers: | ||
- name: harvester-node-disk-manager-webhook | ||
image: "{{ .Values.webhook.image.repository }}:{{ .Values.webhook.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.webhook.image.pullPolicy }} | ||
env: | ||
- name: NAMESPACE | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.namespace | ||
command: | ||
- node-disk-manager-webhook | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: harvester-node-disk-manager-webhook | ||
namespace: {{ .Release.Namespace }} | ||
spec: | ||
type: ClusterIP | ||
selector: | ||
{{- include "harvester-node-disk-manager-webhook.selectorLabels" . | nindent 4 }} | ||
ports: | ||
- name: https | ||
port: 443 | ||
protocol: TCP | ||
targetPort: {{ .Values.webhook.httpsPort }} |
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