added java8 snippet
authorErik Brakkee <erik@brakkee.org>
Wed, 21 Sep 2022 19:11:21 +0000 (21:11 +0200)
committerErik Brakkee <erik@brakkee.org>
Wed, 21 Sep 2022 19:11:21 +0000 (21:11 +0200)
resources/podtemplates/java8.yaml [new file with mode: 0644]
resources/podtemplates/jnlp.yaml

diff --git a/resources/podtemplates/java8.yaml b/resources/podtemplates/java8.yaml
new file mode 100644 (file)
index 0000000..1396ef6
--- /dev/null
@@ -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
index 1e66b60de106907990a7b67964a7931776c6c6b1..a2271757ac1d49ffab460a8d1c6fa2179536e34b 100644 (file)
@@ -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"