File tree Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Expand file tree Collapse file tree 3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service
3
+ metadata :
4
+ name : api-service
5
+ namespace : system
6
+ spec :
7
+ selector :
8
+ control-plane : controller-manager
9
+ ports :
10
+ - port : 5000
Original file line number Diff line number Diff line change 1
1
resources :
2
+ - api-service.yaml
2
3
- manager.yaml
4
+
5
+ # the following config is for teaching kustomize how to do var substitution
6
+ vars :
7
+ - name : API_SERVICE_NAMESPACE # namespace of the service
8
+ objref :
9
+ kind : Service
10
+ version : v1
11
+ name : api-service
12
+ fieldref :
13
+ fieldpath : metadata.namespace
14
+ - name : API_SERVICE_NAME
15
+ objref :
16
+ kind : Service
17
+ version : v1
18
+ name : api-service
19
+ - name : MANAGER_CONTAINER_IMAGE
20
+ objref :
21
+ group : apps
22
+ kind : Deployment
23
+ version : v1
24
+ name : controller-manager
25
+ fieldref :
26
+ fieldpath : spec.template.spec.containers[1].image
Original file line number Diff line number Diff line change 29
29
- --enable-leader-election
30
30
image : ghcr.io/coderanger/migrations-operator:latest
31
31
name : manager
32
+ env :
33
+ - name : API_HOSTNAME
34
+ value : $(API_SERVICE_NAME).$(API_SERVICE_NAMESPACE).svc:5000
35
+ - name : WAITER_IMAGE
36
+ value : $(MANAGER_CONTAINER_IMAGE)
32
37
resources :
33
38
limits :
34
39
memory : 256M
You can’t perform that action at this time.
0 commit comments