BAEL-3567 An Introduction to Kaniko (#9150)

* BAEL-3597 Cactoos

* BAEL-3597 Cactoos

* BAEL-3597 Cactoos

* BAEL-3597 Cactoos

* BAEL-3567 An Introduction to Kaniko

* BAEL-3597 Cactoos

* BAEL-3597 Cactoos

* BAEL-3597 Cactoos

* BAEL-3597 Cactoos

* BAEL-3567 An Introduction to Kaniko

* BAEL-3567 An Introduction to Kaniko
This commit is contained in:
Paturi Radhe Sravan 2020-04-25 03:06:41 +05:30 committed by GitHub
parent 35f1a3eba5
commit 73f96969da
4 changed files with 46 additions and 0 deletions

2
kaniko/dockerfile Normal file
View File

@ -0,0 +1,2 @@
FROM ubuntu
ENTRYPOINT ["/bin/bash", "-c", "echo hello"]

19
kaniko/pod.yaml Normal file
View File

@ -0,0 +1,19 @@
apiVersion: v1
kind: Pod
metadata:
name: kaniko
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:latest
args: ["--dockerfile=/workspace/dockerfile",
"--context=dir://workspace",
"--no-push"]
volumeMounts:
- name: dockerfile-storage
mountPath: /workspace
restartPolicy: Never
volumes:
- name: dockerfile-storage
persistentVolumeClaim:
claimName: dockerfile-claim

11
kaniko/volume-claim.yaml Normal file
View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: dockerfile-claim
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
storageClassName: local-storage

14
kaniko/volume.yaml Normal file
View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: dockerfile
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
storageClassName: local-storage
hostPath:
path: /home/docker/kaniko # Path to the local mount directory that was setup