From 2aa3111f4b9eefa5ae2776d4ea308917a3135435 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Wed, 21 Sep 2022 21:11:21 +0200 Subject: [PATCH] added java8 snippet --- resources/podtemplates/java8.yaml | 21 +++++++++++++++++++++ resources/podtemplates/jnlp.yaml | 9 +++++---- 2 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 resources/podtemplates/java8.yaml diff --git a/resources/podtemplates/java8.yaml b/resources/podtemplates/java8.yaml new file mode 100644 index 0000000..1396ef6 --- /dev/null +++ b/resources/podtemplates/java8.yaml @@ -0,0 +1,21 @@ +apiVersion: v1 +kind: Pod +spec: + containers: + - name: build + image: cat.wamblee.org/java8:latest + command: ["tail", "-f", "/dev/null"] + imagePullPolicy: Always + volumeMounts: + - name: jenkins-m2repo + mountPath: /home/ci/.m2 + - name: jenkins-m2settings + mountPath: /home/ci/.m2/settings.xml + subPath: settings.xml + volumes: + - name: jenkins-m2repo + persistentVolumeClaim: + claimName: jenkins-m2repo + - name: jenkins-m2settings + configMap: + name: jenkins-m2settings diff --git a/resources/podtemplates/jnlp.yaml b/resources/podtemplates/jnlp.yaml index 1e66b60..a227175 100644 --- a/resources/podtemplates/jnlp.yaml +++ b/resources/podtemplates/jnlp.yaml @@ -1,9 +1,10 @@ +# this definition will be included in every pod. + apiVersion: v1 kind: Pod spec: + # quick termination of the pod. + terminationGracePeriodSeconds: 0 + # basically no further overrides currently containers: - name: jnlp - resources: - requests: - memory: "600M" - cpu: "550m" -- 2.31.1