forked from coreos/fedora-coreos-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod.yaml
39 lines (38 loc) · 1.04 KB
/
pod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This pod template is used in the Jenkins pipeline by the Kubernetes plugin. It
# defines the actual coreos-assembler container that will do the work.
apiVersion: v1
metadata:
name: coreos-assembler
kind: Pod
spec:
containers:
- name: jnlp
image: jenkins-slave-base-centos7:latest
args: ['$(JENKINS_SECRET)', '$(JENKINS_NAME)']
- name: coreos-assembler
image: COREOS_ASSEMBLER_IMAGE
imagePullPolicy: Always
command: ['/usr/bin/dumb-init']
args: ['sleep', 'infinity']
env:
# `aws` fails to expand ~/.aws otherwise since we have no home
- name: AWS_CONFIG_FILE
value: /.aws/config
volumeMounts:
- name: data
mountPath: /srv/
- name: aws-creds
mountPath: /.aws
readOnly: true
securityContext:
privileged: false
nodeSelector:
oci_kvm_hook: allowed
volumes:
- name: data
persistentVolumeClaim:
claimName: coreos-assembler-claim2
- name: aws-creds
secret:
secretName: fcos-builds-bot-aws-config
optional: true