Browse Source
helm enable resource for template (#5268)
enable resource for template
pull/5272/head
cuisongliu
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with
30 additions and
6 deletions
-
k8s/charts/seaweedfs/templates/filer-service-client.yaml
-
k8s/charts/seaweedfs/templates/filer-service.yaml
-
k8s/charts/seaweedfs/templates/filer-servicemonitor.yaml
-
k8s/charts/seaweedfs/templates/filler-ingress.yaml
-
k8s/charts/seaweedfs/templates/master-ingress.yaml
-
k8s/charts/seaweedfs/templates/master-service.yaml
-
k8s/charts/seaweedfs/templates/master-servicemonitor.yaml
-
k8s/charts/seaweedfs/templates/s3-service.yaml
-
k8s/charts/seaweedfs/templates/s3-servicemonitor.yaml
-
k8s/charts/seaweedfs/templates/secret-seaweedfs-db.yaml
-
k8s/charts/seaweedfs/templates/volume-service.yaml
-
k8s/charts/seaweedfs/templates/volume-servicemonitor.yaml
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.filer.enabled }} |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Service |
|
|
kind: Service |
|
|
metadata: |
|
|
metadata: |
|
@ -32,3 +33,4 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/component: filer |
|
|
app.kubernetes.io/component: filer |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.filer.enabled }} |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Service |
|
|
kind: Service |
|
|
metadata: |
|
|
metadata: |
|
@ -44,3 +45,4 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/component: filer |
|
|
app.kubernetes.io/component: filer |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.filer.enabled }} |
|
|
{{- if .Values.filer.metricsPort }} |
|
|
{{- if .Values.filer.metricsPort }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
@ -22,3 +23,4 @@ spec: |
|
|
app.kubernetes.io/component: filer |
|
|
app.kubernetes.io/component: filer |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.filer.enabled }} |
|
|
{{- if .Values.filer.ingress.enabled }} |
|
|
{{- if .Values.filer.ingress.enabled }} |
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
apiVersion: networking.k8s.io/v1 |
|
@ -44,3 +45,4 @@ spec: |
|
|
host: {{ .Values.filer.ingress.host }} |
|
|
host: {{ .Values.filer.ingress.host }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.master.enabled }} |
|
|
{{- if .Values.master.ingress.enabled }} |
|
|
{{- if .Values.master.ingress.enabled }} |
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} |
|
|
apiVersion: networking.k8s.io/v1 |
|
|
apiVersion: networking.k8s.io/v1 |
|
@ -44,3 +45,4 @@ spec: |
|
|
host: {{ .Values.master.ingress.host }} |
|
|
host: {{ .Values.master.ingress.host }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.master.enabled }} |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Service |
|
|
kind: Service |
|
|
metadata: |
|
|
metadata: |
|
@ -31,3 +32,4 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/component: master |
|
|
app.kubernetes.io/component: master |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.master.enabled }} |
|
|
{{- if .Values.master.metricsPort }} |
|
|
{{- if .Values.master.metricsPort }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
@ -22,3 +23,4 @@ spec: |
|
|
app.kubernetes.io/component: master |
|
|
app.kubernetes.io/component: master |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if or .Values.s3.enabled .Values.filer.s3.enabled }} |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Service |
|
|
kind: Service |
|
|
metadata: |
|
|
metadata: |
|
@ -30,3 +31,4 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }} |
|
|
app.kubernetes.io/component: {{ if .Values.s3.enabled }}s3{{ else }}filer{{ end }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if or .Values.s3.enabled .Values.filer.s3.enabled }} |
|
|
{{- if .Values.s3.metricsPort }} |
|
|
{{- if .Values.s3.metricsPort }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
@ -22,3 +23,4 @@ spec: |
|
|
component: s3 |
|
|
component: s3 |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.filer.enabled }} |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Secret |
|
|
kind: Secret |
|
|
type: Opaque |
|
|
type: Opaque |
|
@ -17,3 +18,4 @@ stringData: |
|
|
password: "HardCodedPassword" |
|
|
password: "HardCodedPassword" |
|
|
# better to random generate and create in DB |
|
|
# better to random generate and create in DB |
|
|
# password: {{ randAlphaNum 10 | sha256sum | b64enc | trunc 32 }} |
|
|
# password: {{ randAlphaNum 10 | sha256sum | b64enc | trunc 32 }} |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.volume.enabled }} |
|
|
apiVersion: v1 |
|
|
apiVersion: v1 |
|
|
kind: Service |
|
|
kind: Service |
|
|
metadata: |
|
|
metadata: |
|
@ -29,3 +30,4 @@ spec: |
|
|
selector: |
|
|
selector: |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }} |
|
|
app.kubernetes.io/component: volume |
|
|
app.kubernetes.io/component: volume |
|
|
|
|
|
{{- end }} |
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
{{- if .Values.volume.enabled }} |
|
|
{{- if .Values.volume.metricsPort }} |
|
|
{{- if .Values.volume.metricsPort }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
{{- if .Values.global.monitoring.enabled }} |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
|
apiVersion: monitoring.coreos.com/v1 |
|
@ -22,3 +23,4 @@ spec: |
|
|
app.kubernetes.io/component: volume |
|
|
app.kubernetes.io/component: volume |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
{{- end }} |