Created pipeline for Jenkins in Kubernetes cluster

This commit is contained in:
Marcin-Ramotowski
2025-06-12 19:02:29 +00:00
parent f55776916e
commit 4901890d0e
3 changed files with 120 additions and 34 deletions

30
.jenkins/podTemplate.yaml Normal file
View 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