-
Notifications
You must be signed in to change notification settings - Fork 87
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 #96 from diebietse/daemon-set
Add DaemonSet support
- Loading branch information
Showing
10 changed files
with
228 additions
and
260 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
64 changes: 64 additions & 0 deletions
64
helm/cert-exporter/templates/cert-manager/cert-manager.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,64 @@ | ||
{{- include "certManager.assertValidKind" . }} | ||
apiVersion: apps/v1 | ||
kind: {{ .Values.certManager.kind }} | ||
metadata: | ||
name: "{{- include "cert-exporter.fullname" . -}}-cert-manager" | ||
labels: | ||
{{- include "cert-exporter.certManagerLabels" . | nindent 4 }} | ||
spec: | ||
{{- if eq .Values.certManager.kind "Deployment" }} | ||
replicas: {{ .Values.certManager.replicaCount }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "cert-exporter.certManagerSelectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "cert-exporter.certManagerSelectorLabels" . | nindent 8 }} | ||
annotations: | ||
{{- toYaml .Values.certManager.podAnnotations | nindent 8 }} | ||
spec: | ||
{{- with .Values.certManager.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: {{ include "cert-exporter.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.certManager.podSecurityContext | nindent 8 }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
securityContext: | ||
{{- toYaml .Values.certManager.securityContext | nindent 12 }} | ||
image: "{{ .Values.certManager.image.repository }}:{{ .Chart.AppVersion }}" | ||
imagePullPolicy: {{ .Values.certManager.image.pullPolicy }} | ||
{{- with .Values.certManager.image.command }} | ||
command: | ||
{{- toYaml . | nindent 12}} | ||
{{- end}} | ||
{{- with .Values.certManager.image.args }} | ||
args: | ||
{{- toYaml . | nindent 12}} | ||
{{- end}} | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
protocol: TCP | ||
resources: | ||
{{- toYaml .Values.certManager.resources | nindent 12 }} | ||
volumeMounts: | ||
{{- toYaml .Values.certManager.volumeMounts | nindent 12 }} | ||
{{- with .Values.certManager.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.certManager.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.certManager.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
volumes: | ||
{{- toYaml .Values.certManager.volumes | nindent 8 }} |
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 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "cert-exporter.fullname" . }} | ||
labels: | ||
{{- include "cert-exporter.certManagerLabels" . | nindent 4 }} | ||
{{- with .Values.service.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
type: {{ .Values.service.type }} | ||
ports: | ||
- port: {{ .Values.service.port }} | ||
name: {{ .Values.service.portName }} | ||
targetPort: 8080 | ||
selector: | ||
{{ include "cert-exporter.certManagerSelectorLabels" . | nindent 6 }} |
30 changes: 30 additions & 0 deletions
30
helm/cert-exporter/templates/cert-manager/servicemonitor.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,30 @@ | ||
{{- if .Values.service.serviceMonitor.create -}} | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: {{ template "cert-exporter.fullname" . }}-cert-manager | ||
labels: | ||
{{- toYaml .Values.service.serviceMonitor.additionalLabels | nindent 4 }} | ||
{{- include "cert-exporter.certManagerLabels" . | nindent 4 }} | ||
spec: | ||
jobLabel: jobLabel | ||
selector: | ||
matchLabels: | ||
{{- include "cert-exporter.certManagerSelectorLabels" . | nindent 6 }} | ||
namespaceSelector: | ||
matchNames: | ||
- {{ .Release.Namespace | quote }} | ||
endpoints: | ||
- port: {{ .Values.service.portName }} | ||
{{- if .Values.service.serviceMonitor.interval}} | ||
interval: {{ .Values.service.serviceMonitor.interval }} | ||
{{- end }} | ||
{{- if .Values.service.serviceMonitor.metricRelabelings }} | ||
metricRelabelings: | ||
{{ toYaml .Values.service.serviceMonitor.metricRelabelings | nindent 6 }} | ||
{{- end }} | ||
{{- if .Values.service.serviceMonitor.relabelings }} | ||
relabelings: | ||
{{ toYaml .Values.service.serviceMonitor.relabelings | nindent 6 }} | ||
{{- end }} | ||
{{- end }} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
helm/cert-exporter/templates/deployment/servicemonitor.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.