Skip to content

Commit

Permalink
kaniko
Browse files Browse the repository at this point in the history
  • Loading branch information
briansunter committed Jun 9, 2024
1 parent 6248646 commit 9d78feb
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions manifests/nginx-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
apiVersion: batch/v1
kind: Job
apiVersion: apps/v1
kind: Deployment
metadata:
name: build-job-v3
name: nginx-deployment
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: build
image: gcr.io/kaniko-project/executor:latest
args:
[
"--dockerfile=Dockerfile",
"--context=git://github.com/briansunter/graph.git#refs/heads/kube",
"--destination=local-registry:5001/graph:latest",
"--insecure",
]
- name: nginx
image: local-registry:5001/graph:latest
volumeMounts:
- name: dist
mountPath: /usr/share/nginx/html
- name: kaniko-secret
mountPath: /kaniko/.docker
securityContext:
privileged: true
restartPolicy: Never
volumes:
- name: dist
emptyDir: {}
- name: kaniko-secret
secret:
secretName: regcred
items:
- key: .dockerconfigjson
path: config.json
imagePullSecrets:
- name: my-registry-secret

0 comments on commit 9d78feb

Please sign in to comment.