-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpatches.yaml
More file actions
111 lines (109 loc) · 3.02 KB
/
patches.yaml
File metadata and controls
111 lines (109 loc) · 3.02 KB
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
# Add metrics port to deployment templates
- target:
kind: Deployment
name: capo-controller-manager
patch: |-
- op: add
path: '/spec/template/spec/containers/0/ports/-'
value:
containerPort: 8080
name: metrics
protocol: TCP
- target:
kind: Deployment
name: capi-kubeadm-control-plane-controller-manager
patch: |-
- op: replace
path: '/spec/template/spec/containers/0/ports/2'
value:
containerPort: 8080
name: metrics
protocol: TCP
- target:
kind: Deployment
name: capi-kubeadm-bootstrap-controller-manager
patch: |-
- op: replace
path: '/spec/template/spec/containers/0/ports/2'
value:
containerPort: 8080
name: metrics
protocol: TCP
- target:
kind: Deployment
name: capi-controller-manager
patch: |-
- op: replace
path: '/spec/template/spec/containers/0/ports/2'
value:
containerPort: 8080
name: metrics
protocol: TCP
- target:
kind: Deployment
name: orc-controller-manager
patch: |-
- op: add
path: '/spec/template/spec/containers/0/ports'
value:
- containerPort: 8080
name: metrics
protocol: TCP
# Replace metrics port in cluster-api provider openstack args
- target:
kind: Deployment
name: capo-controller-manager
patch: |-
- op: replace
path: /spec/template/spec/containers/0/args/2
value: --diagnostics-address=0.0.0.0:8080
# Add metrics port in openstack-resource-controller args
- target:
kind: Deployment
name: orc-controller-manager
patch: |-
- op: add
path: /spec/template/spec/containers/0/args/-
value: --metrics-secure=false
- target:
kind: Deployment
name: orc-controller-manager
patch: |-
- op: replace
path: /spec/template/spec/containers/0/args/0
value: --metrics-bind-address=:8080
# Change port of openstack-resource-controller metrics service
- target:
kind: Service
name: orc-controller-manager-metrics-service
patch: |-
- op: replace
path: '/spec/ports'
value:
- name: metrics
port: 8080
protocol: TCP
targetPort: 8080
# Changes to all deployments
- target:
kind: Deployment
patch: |-
# The default image is something developer centric and random
- op: add
path: '/spec/template/spec/containers/0/image'
value: '{{ .Values.image }}'
# The default pull policy doesn't work in times of network trouble and slows
# things down, so allow caching. If they are force pushing, then shame on
# CAPI for breaking semantic versioning.
- op: add
path: '/spec/template/spec/containers/0/imagePullPolicy'
value: 'IfNotPresent'
- target:
kind: Deployment
name: 'cap[io].*-controller-manager'
# Make the logs structured
patch: |-
- op: add
path: '/spec/template/spec/containers/0/args/-'
value: '--logging-format=json'
# TODO: add in scheduling requests/limits for proper scheduling.