Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue JPPF-589 first working version of jppf cluster helm chart
- Loading branch information
Showing
14 changed files
with
122 additions
and
167 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#! /bin/bash | ||
|
||
d=0 | ||
n=0 | ||
list=$(docker ps -a | grep jppf | awk '{printf "%s ",$NF} END {print ""}') | ||
for i in ${list} | ||
do | ||
echo "i = $i" | ||
name=$i | ||
if [[ $i = *driver* ]]; then | ||
docker logs --details $name > jppf-driver.out.log | ||
else | ||
d=$(( d + 1 )) | ||
docker logs --details $name > jppf-driver-$d.out.log | ||
elif [[ $i = *node* ]]; then | ||
n=$(( n + 1 )) | ||
docker logs --details $name > jppf-node-$n.out.log | ||
fi | ||
done | ||
done |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
JPPF/bin/docker/k8s/jppf-driver/templates/tests/test-connection.yaml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
JPPF/bin/docker/k8s/jppf-driver/Chart.yaml → JPPF/bin/docker/k8s/jppf/Chart.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v1 | ||
|
||
name: jppf-driver | ||
name: jppf | ||
home: https://www.jppf.org | ||
|
||
version: 6.2-alpha | ||
|
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
20 changes: 11 additions & 9 deletions
20
...k8s/jppf-driver/templates/deployment.yaml → ...k8s/jppf/templates/driver-deployment.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
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,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
|
||
metadata: | ||
name: jppf-driver-service | ||
|
||
spec: | ||
ports: | ||
- port: 11111 | ||
targetPort: jppf | ||
protocol: TCP | ||
|
||
selector: | ||
app.kubernetes.io/name: {{ include "jppf.name" . }}-driver | ||
app.kubernetes.io/instance: {{ .Release.Name }}-driver | ||
|
||
type: NodePort |
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,51 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
#name: {{ include "jppf.fullname" . }}-node | ||
name: {{ .Chart.Name }}-node | ||
labels: | ||
{{ include "jppf.labels" . | indent 4 }} | ||
spec: | ||
replicas: {{ .Values.node.replicaCount }} | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: {{ include "jppf.name" . }}-node | ||
app.kubernetes.io/instance: {{ .Release.Name }}-node | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: {{ include "jppf.name" . }}-node | ||
app.kubernetes.io/instance: {{ .Release.Name }}-node | ||
spec: | ||
{{- with .Values.imagePullSecrets }} | ||
imagePullSecrets: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: {{ .Chart.Name }} | ||
image: "{{ .Values.image.registryName }}/{{ .Values.node.imageRepository }}:{{ .Values.image.tag }}" | ||
imagePullPolicy: {{ .Values.image.pullPolicy }} | ||
env: | ||
- name: JPPF_SUBNET | ||
value: {{ .Values.jppf.subnet }} | ||
- name: JPPF_NODE_JVM_OPTIONS | ||
value: {{ .Values.node.jvmOptions }} | ||
- name: JPPF_VERSION | ||
value: {{ .Values.jppf.version }} | ||
- name: JPPF_SERVER_HOST | ||
value: {{ .Values.driver.hostname }}-service | ||
#value: {{ .Values.driver.hostname }}.{{ .Release.Namespace }}.svc.cluster.local | ||
resources: | ||
{{- toYaml .Values.resources | nindent 12 }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.affinity }} | ||
affinity: | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.tolerations }} | ||
tolerations: | ||
{{- toYaml . | nindent 8 }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Default values for jppf-driver. | ||
# This is a YAML-formatted file. | ||
# Declare variables to be passed into your templates. | ||
|
||
|
||
driver: | ||
imageRepository: jppf-driver | ||
jvmOptions: "-Xmx256m -Xms64m" | ||
replicaCount: 1 | ||
hostname: jppf-driver | ||
|
||
node: | ||
imageRepository: jppf-node | ||
jvmOptions: "-Xmx128m -Xms32m" | ||
replicaCount: 2 | ||
|
||
image: | ||
registryName: jppf | ||
tag: 6.2-alpha | ||
pullPolicy: IfNotPresent | ||
|
||
jppf: | ||
subnet: "172.16.238.0/24" | ||
version: "6.2-alpha" | ||
|