This repository has been archived by the owner on Apr 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathskaffold.yaml
138 lines (138 loc) Β· 3.37 KB
/
skaffold.yaml
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
apiVersion: skaffold/v2alpha1
kind: Config
build:
artifacts:
- image: rode
local:
useBuildkit: true
deploy:
helm:
releases:
- name: rode
chartPath: helm-chart/rode
skipBuildDependencies: true
wait: true
values:
image: rode
imageStrategy:
helm: {}
portForward:
- resourceType: service
resourceName: rode
namespace: rode
port: 443
localPort: 9443
profiles:
- name: local
activation:
- kubeContext: docker-for-desktop
- kubeContext: docker-desktop
patches:
- op: add
path: /deploy/helm/releases/0/namespace
value: rode
- op: add
path: /deploy/helm/releases/0/overrides
value:
service:
type: NodePort
nodePort: 31443
grafeas:
storageType: "memstore"
service:
type: NodePort
nodePort: 30443
localstack:
enabled: true
debug: true
persistence:
enabled: false
extraEnv:
- name: AWS_REGION
value: us-east-1
- name: AWS_ACCESS_KEY_ID
value: fake
- name: AWS_SECRET_ACCESS_KEY
value: fake
- name: AWS_SQS_ENDPOINT
value: rode-localstack:4576
- name: AWS_EVENTS_ENDPOINT
value: rode-localstack:4587
- name: OPA_TRACE
value: "0"
# Deploy Rode without enforcer `skaffold run -p local,policy`
- name: policy
patches:
- op: replace
path: /deploy/helm/releases/0/name
value: rode-policy
- op: replace
path: /deploy/helm/releases/0/namespace
value: rode-policy
- op: add
path: /deploy/helm/releases/0/overrides/attesters
value:
enabled: true
- op: add
path: /deploy/helm/releases/0/overrides/jetstream
value:
enabled: true
- op: add
path: /deploy/helm/releases/0/overrides/enforcer
value:
enabled: false
- op: add
path: /deploy/helm/releases/0/overrides/localstack
value:
enabled: false
# Deploy Rode with only enforcer `skaffold run -p local,enforcer`
- name: enforcer
patches:
- op: replace
path: /deploy/helm/releases/0/name
value: rode-enforcer
- op: replace
path: /deploy/helm/releases/0/namespace
value: rode-enforcer
- op: add
path: /deploy/helm/releases/0/overrides/attesters
value:
enabled: false
- op: add
path: /deploy/helm/releases/0/overrides/enforcer
value:
enabled: true
- op: replace
path: /deploy/helm/releases/0/overrides/service/nodePort
value: 31444
- op: replace
path: /deploy/helm/releases/0/overrides/grafeas/service/nodePort
value: 31445
- op: add
path: /deploy/helm/releases/0/overrides/localstack
value:
enabled: false
- op: add
path: /deploy/helm/releases/0/overrides/eventStreamer
value:
type: jetstream
endpoint: rode-policy-jetstream.rode-policy.svc.cluster.local
- name: production
patches:
- op: add
path: /deploy/helm/flags
value:
global:
- '--tiller-namespace'
- 'rode'
- op: add
path: /deploy/helm/releases/0/namespace
value: rode
- op: add
path: /deploy/helm/releases/0/overrides
value:
image:
pullPolicy: Always
rbac:
serviceAccountAnnotations:
eks.amazonaws.com/role-arn: arn:aws:iam::489130170427:role/RodeServiceAccount