Created pipeline for Jenkins in Kubernetes cluster
This commit is contained in:
30
.jenkins/podTemplate.yaml
Normal file
30
.jenkins/podTemplate.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
labels:
|
||||
some-label: jenkins-agent
|
||||
spec:
|
||||
containers:
|
||||
- name: kubectl
|
||||
image: mcr.microsoft.com/azure-cli:latest
|
||||
command:
|
||||
- cat
|
||||
tty: true
|
||||
volumeMounts:
|
||||
- name: azure-config
|
||||
mountPath: /root/.azure
|
||||
|
||||
- name: kubelogin
|
||||
image: ghcr.io/int128/kubelogin:latest
|
||||
command:
|
||||
- cat
|
||||
tty: true
|
||||
|
||||
volumes:
|
||||
- name: azure-config
|
||||
emptyDir: {}
|
||||
|
||||
nodeSelector:
|
||||
kubernetes.io/os: linux
|
||||
|
||||
restartPolicy: Never
|
Reference in New Issue
Block a user