Skip to content

Commit a305d5c

Browse files
committed
2 parents f3a0d73 + e1b0417 commit a305d5c

5 files changed

Lines changed: 153 additions & 0 deletions

File tree

addons/flink/1.17/meta.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ instances_retrievable: true
1515
bindings_retrievable: true
1616
plan_updateable: true
1717
allow_parameters:
18+
- name: "image"
19+
required: false
20+
description: "image config for values.yaml"
1821
- name: "jobmanager.nodeSelector"
1922
required: false
2023
description: "jobmanager nodeSelector config for values.yaml"
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
credential:
2+
{{- if (eq .Values.service.type "LoadBalancer") }}
3+
- name: EXTERNAL_MASTER_HOST
4+
valueFrom:
5+
serviceRef:
6+
name: {{ printf "%s-master-svc" (include "common.names.fullname" .) }}
7+
jsonpath: '{ .status.loadBalancer.ingress[*].ip }'
8+
{{- end }}
9+
10+
- name: MASTER_DOMAIN
11+
value: {{ printf "%s-master-svc" (include "common.names.fullname" .) }}.{{ .Release.Namespace }}.svc.{{ .Values.clusterDomain }}
12+
13+
- name: MASTER_HOST
14+
valueFrom:
15+
serviceRef:
16+
name: {{ printf "%s-master-svc" (include "common.names.fullname" .) }}
17+
jsonpath: '{ .spec.clusterIP }'
18+
19+
- name: MASTER_PORT
20+
valueFrom:
21+
serviceRef:
22+
name: {{ printf "%s-master-svc" (include "common.names.fullname" .) }}
23+
jsonpath: '{ .spec.ports[?(@.name=="cluster")].port }'
24+
25+
{{- if .Values.security.ssl.enabled }}
26+
- name: HTTPS_PORT
27+
valueFrom:
28+
serviceRef:
29+
name: {{ printf "%s-master-svc" (include "common.names.fullname" .) }}
30+
jsonpath: '{ .spec.ports[?(@.name=="https")].port }'
31+
{{- else }}
32+
- name: HTTP_PORT
33+
valueFrom:
34+
serviceRef:
35+
name: {{ printf "%s-master-svc" (include "common.names.fullname" .) }}
36+
jsonpath: '{ .spec.ports[?(@.name=="http")].port }'
37+
{{- end }}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "object",
4+
"properties": {
5+
"imagePullPolicy": {
6+
"type": "string",
7+
"enum": ["Always", "IfNotPresent", "Never"],
8+
"default": "IfNotPresent",
9+
"title": "Image pull policy"
10+
}
11+
}
12+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: "standard-16c64g5w"
2+
id: 4fbc37f3-b36e-44d9-bf30-6bd1ddee5fde
3+
description: "Spark standard-16c64g5w plan which limit resources 16 cores 64G memory 5 workers."
4+
displayName: "standard-16c64g5w"
5+
bindable: true
6+
maximum_polling_duration: 1800
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
## @param fullnameOverride String to fully override common.names.fullname template
2+
##
3+
fullnameOverride: "hb-spark-standard-16c64g5w"
4+
5+
## Spark master specific configuration
6+
##
7+
master:
8+
## @param master.daemonMemoryLimit Set the memory limit for the master daemon
9+
##
10+
daemonMemoryLimit: ""
11+
## @param master.configOptions Use a string to set the config options for in the form "-Dx=y"
12+
##
13+
configOptions: ""
14+
## @param master.extraEnvVars Extra environment variables to pass to the master container
15+
## For example:
16+
## extraEnvVars:
17+
## - name: SPARK_DAEMON_JAVA_OPTS
18+
## value: -Dx=y
19+
##
20+
## Container resource requests and limits
21+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
22+
## We usually recommend not to specify default resources and to leave this as a conscious
23+
## choice for the user. This also increases chances charts run on environments with little
24+
## resources, such as Minikube. If you do want to specify resources, uncomment the following
25+
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
26+
## @param master.resources.limits The resources limits for the container
27+
## @param master.resources.requests The requested resources for the container
28+
##
29+
resources:
30+
limits:
31+
cpu: 16
32+
memory: 64Gi
33+
requests:
34+
cpu: 4
35+
memory: 16Gi
36+
## Enable persistence using Persistent Volume Claims
37+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
38+
##
39+
persistence:
40+
enabled: true
41+
accessModes:
42+
- ReadWriteOnce
43+
size: 1Gi
44+
## @section Spark worker parameters
45+
##
46+
47+
## Spark worker specific configuration
48+
##
49+
worker:
50+
## @param worker.daemonMemoryLimit Set the memory limit for the worker daemon
51+
##
52+
daemonMemoryLimit: ""
53+
## @param worker.memoryLimit Set the maximum memory the worker is allowed to use
54+
##
55+
memoryLimit: ""
56+
## @param worker.coreLimit Se the maximum number of cores that the worker can use
57+
##
58+
coreLimit: ""
59+
javaOptions: ""
60+
## @param worker.configOptions Set extra options to configure the worker in the form `-Dx=y`
61+
##
62+
configOptions: ""
63+
## @param worker.extraEnvVars An array to add extra env vars
64+
## For example:
65+
## extraEnvVars:
66+
## - name: SPARK_DAEMON_JAVA_OPTS
67+
## value: -Dx=y
68+
69+
## @param worker.replicaCount Number of spark workers (will be the minimum number when autoscaling is enabled)
70+
##
71+
replicaCount: 5
72+
## Container resource requests and limits
73+
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
74+
## We usually recommend not to specify default resources and to leave this as a conscious
75+
## choice for the user. This also increases chances charts run on environments with little
76+
## resources, such as Minikube. If you do want to specify resources, uncomment the following
77+
## lines, adjust them as necessary, and remove the curly braces after 'resources:'.
78+
## @param worker.resources.limits The resources limits for the container
79+
## @param worker.resources.requests The requested resources for the container
80+
##
81+
resources:
82+
limits:
83+
cpu: 16
84+
memory: 64Gi
85+
requests:
86+
cpu: 4
87+
memory: 16Gi
88+
## Enable persistence using Persistent Volume Claims
89+
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
90+
##
91+
persistence:
92+
enabled: true
93+
accessModes:
94+
- ReadWriteOnce
95+
size: 1Gi

0 commit comments

Comments
 (0)