apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: kaniko
|
|
namespace: jenkins
|
|
spec:
|
|
hostAliases:
|
|
- ip: "192.168.1.116"
|
|
hostnames:
|
|
- "api.ocp-cluster.reymota.lab"
|
|
containers:
|
|
- name: kubectl
|
|
image: joshendriks/alpine-k8s
|
|
command:
|
|
- /bin/cat
|
|
tty: true
|
|
- name: kaniko
|
|
image: gcr.io/kaniko-project/executor:debug
|
|
command:
|
|
- /busybox/cat
|
|
tty: true
|
|
volumeMounts:
|
|
- name: kaniko-secret
|
|
mountPath: /kaniko/.docker
|
|
volumes:
|
|
- name: kaniko-secret
|
|
secret:
|
|
secretName: regcred
|
|
items:
|
|
- key: .dockerconfigjson
|
|
path: config.json
|