-
Notifications
You must be signed in to change notification settings - Fork 3
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 #44 from cheyang/helm-chart-fluid-1.0.0-alpha.16
Update helm-chart-fluid-1.0.0-alpha.16
- Loading branch information
Showing
9 changed files
with
245 additions
and
20 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
80 changes: 80 additions & 0 deletions
80
charts/fluid/templates/controller/vineyardruntime_controller.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,80 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: vineyardruntime-controller | ||
namespace: {{ include "fluid.namespace" . }} | ||
labels: | ||
control-plane: vineyardruntime-controller | ||
spec: | ||
selector: | ||
matchLabels: | ||
control-plane: vineyardruntime-controller | ||
{{ if .Values.runtime.vineyard.enabled -}} | ||
replicas: {{ .Values.runtime.vineyard.replicas }} | ||
{{- else }} | ||
replicas: 0 | ||
{{- end }} | ||
template: | ||
metadata: | ||
labels: | ||
control-plane: vineyardruntime-controller | ||
annotations: | ||
{{ if gt (.Values.runtime.vineyard.replicas | int) 1 -}} | ||
controller.runtime.fluid.io/replicas: {{ .Values.runtime.vineyard.replicas | quote }} | ||
{{- end }} | ||
spec: | ||
{{- with .Values.image.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
serviceAccountName: vineyardruntime-controller | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: NotIn | ||
values: | ||
- virtual-kubelet | ||
{{- if .Values.runtime.vineyard.tolerations }} | ||
tolerations: | ||
{{ toYaml .Values.runtime.vineyard.tolerations | indent 6 }} | ||
{{- end }} | ||
containers: | ||
- image: {{ .Values.runtime.vineyard.controller.image | quote }} | ||
name: manager | ||
command: ["vineyardruntime-controller", "start"] | ||
args: | ||
- --development=false | ||
- --pprof-addr=:6060 | ||
- --enable-leader-election | ||
- --leader-election-namespace={{ include "fluid.namespace" . }} | ||
env: | ||
{{- if .Values.workdir }} | ||
- name: FLUID_WORKDIR | ||
value: {{ .Values.workdir | quote }} | ||
{{- end }} | ||
{{- if .Values.runtime.mountRoot }} | ||
- name: MOUNT_ROOT | ||
value: {{ .Values.runtime.mountRoot | quote }} | ||
{{- end }} | ||
{{- if .Values.runtime.syncRetryDuration }} | ||
- name: FLUID_SYNC_RETRY_DURATION | ||
value: {{ .Values.runtime.syncRetryDuration | quote }} | ||
{{- end }} | ||
- name: HELM_DRIVER | ||
value: {{ template "fluid.helmDriver" . }} | ||
ports: | ||
- containerPort: 8080 | ||
name: metrics | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 1536Mi | ||
requests: | ||
cpu: 100m | ||
memory: 200Mi | ||
terminationGracePeriodSeconds: 10 |
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,126 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: vineyardruntime-controller | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- persistentvolumeclaims | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- persistentvolumes | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- nodes | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- patch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch | ||
{{- template "fluid.helmDriver.rbacs" . }} | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
verbs: | ||
- create | ||
- delete | ||
- list | ||
- watch | ||
- get | ||
- apiGroups: | ||
- data.fluid.io | ||
resources: | ||
- vineyardruntimes | ||
- datasets | ||
- vineyardruntimes/status | ||
- datasets/status | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- daemonsets | ||
- statefulsets | ||
- daemonsets/status | ||
- statefulsets/status | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- coordination.k8s.io | ||
resources: | ||
- leases | ||
verbs: | ||
- '*' | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: vineyardruntime-clusterrolebinding | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: vineyardruntime-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: vineyardruntime-controller | ||
namespace: {{ include "fluid.namespace" . }} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: vineyardruntime-controller | ||
namespace: {{ include "fluid.namespace" . }} |
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 |
---|---|---|
|
@@ -64,6 +64,7 @@ rules: | |
- goosefsruntimes | ||
- thinruntimes | ||
- efcruntimes | ||
- vineyardruntimes | ||
verbs: | ||
- get | ||
- list | ||
|
Oops, something went wrong.