-
Notifications
You must be signed in to change notification settings - Fork 116
/
skaffold.yaml
43 lines (41 loc) · 1.49 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
apiVersion: skaffold/v4beta11
kind: Config
metadata:
name: cloud-controller-manager
build:
artifacts:
- image: docker.io/hetznercloud/hcloud-cloud-controller-manager
docker:
dockerfile: dev/Dockerfile
local:
useBuildkit: true
insecureRegistries:
- localhost:30666
manifests:
helm:
releases:
- name: hccm
namespace: kube-system
chartPath: chart
setValues:
networking.enabled: true
# Pulling the containers from other nodes requires working network routes, but HCCM set these up.
# We circumvent this by co-locating the registry & HCCM, so it's always a local pull.
affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKey: "kubernetes.io/hostname"
affinity.podAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchLabels.app: docker-registry
profiles:
# Clusters with Robot Servers do not support the native Routing functionality right now.
- name: robot
patches:
- op: replace
path: /manifests/helm/releases/0/setValues/networking.enabled
value: false
- op: add
path: /manifests/helm/releases/0/setValues/robot.enabled
value: true
- op: add
path: /manifests/helm/releases/0/setValues/env.ROBOT_USER.valueFrom.secretKeyRef.name
value: robot
- op: add
path: /manifests/helm/releases/0/setValues/env.ROBOT_PASSWORD.valueFrom.secretKeyRef.name
value: robot