-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorca-local.yml
74 lines (74 loc) · 2.82 KB
/
orca-local.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
job:
preconfigured:
kubernetes:
- label: dockerStage
type: customJobdockerStage
description: Stage for doing a docker build and push
cloudProvider: kubernetes
account: target-aks-cluster
credentials: target-aks-cluster
waitForCompletion: true
application: gitdemo
parameters:
- label: dockerfileargument
name: pass dockerfilepath
description: pass dockerfilepath .
mapping: 'manifest.spec.template.spec.containers[0].args[0]'
defaultValue: --dockerfile=/workspace/restapp/Dockerfile
- label: dockercontextargument
name: pass dockercontextargument
description: pass dockerfilepath.
mapping: 'manifest.spec.template.spec.containers[0].args[1]'
defaultValue: --context=/workspace/restapp
- label: dockerimageargument
name: pass dockerimageargument
description: pass dockerimageargument.
mapping: 'manifest.spec.template.spec.containers[0].args[2]'
defaultValue: --destination=gopalvithaljayanthi/restapp:fromkaniko
- label: namespace
name: namespace
description: pass namespace in which you want to deploy k8s job.
mapping: manifest.metadata.namespace
defaultValue: robin
manifest:
apiVersion: batch/v1
kind: Job
metadata:
name: dockerjob
namespace: robin
spec:
backoffLimit: 0
template:
spec:
restartPolicy: Never
volumes:
- name: gitrepo
persistentVolumeClaim:
claimName: newgitrepo-claim
- name: kaniko-secret
secret:
secretName: kaniko
items:
- key: config.json
path: config.json
- name: kaniko-cache
persistentVolumeClaim:
claimName: dockerjob-claim
containers:
- name: kaniko
image: 'gcr.io/kaniko-project/executor:latest'
imagePullPolicy: Always
args:
-
-
-
- --cache=true
- --cache-dir=/cache
- --cache-repo=gopalvithaljayanthi/restapp-cache
volumeMounts:
- name: gitrepo
mountPath: /workspace
- name: kaniko-secret
mountPath: /kaniko/.docker/
- name: kaniko-cache
mountPath: /cache