Skip to content

Commit

Permalink
Added some flink-k8s-operator related yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
pielas committed Jun 18, 2024
1 parent 87d14ae commit ed69a11
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: flink-deployment-creator
rules:
- apiGroups: ["flink.apache.org"]
resources: ["flinkdeployments"]
verbs: ["create", "delete", "list", "update", "get"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: flink-deployment-creator-binding
subjects:
- kind: ServiceAccount
name: nussknacker
roleRef:
kind: Role
name: flink-deployment-creator
apiGroup: rbac.authorization.k8s.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Values.clusterRoleBinding.name }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Values.clusterRoleBinding.roleName }}
subjects:
{{- range .Values.clusterRoleBinding.subjects }}
- kind: ServiceAccount
name: {{ .name }}
namespace: {{ .namespace }}
{{- end }}
4 changes: 4 additions & 0 deletions src/templates/flink-k8s-operator/service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: flink-service-account
11 changes: 11 additions & 0 deletions src/templates/flink-k8s-operator/shared-volume-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: payload-pvc-nfs
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: nfs
3 changes: 3 additions & 0 deletions src/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ flink:
jobmanager:
statefulset: true

flink-k8s-operator:
enabled: true

grafana:
enabled: true
grafana.ini:
Expand Down

0 comments on commit ed69a11

Please sign in to comment.