21 lines
522 B
YAML
21 lines
522 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: build-with-apt-cache
|
|
spec:
|
|
containers:
|
|
- name: kaniko
|
|
image: gcr.io/kaniko-project/executor:latest
|
|
args:
|
|
- "--dockerfile=Dockerfile"
|
|
- "--context=gs://my-bucket"
|
|
- "--destination=192.168.1.83:8443/myapp:latest"
|
|
- "--cache=true"
|
|
- "--cache-repo=192.168.1.83:8443/kaniko-cache"
|
|
env:
|
|
- name: HTTP_PROXY
|
|
value: "http://apt-cacher-service:3142"
|
|
- name: HTTPS_PROXY
|
|
value: "http://apt-cacher-service:3142"
|
|
restartPolicy: Never
|