-
Notifications
You must be signed in to change notification settings - Fork 468
/
devspace.yaml
81 lines (74 loc) · 2.38 KB
/
devspace.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
version: v1beta11
vars:
- name: OPERATOR_NAMESPACE
question: Which kubenetes namespace do you want to use for clickhouse-operator deployment?
default: "kube-system"
- name: DEVSPACE_DEBUG
question: Should build docker images with debugger (please choose delve or none)?
default: "delve"
images:
metrics-exporter:
image: altinity/metrics-exporter
tags:
- devspace-####
build:
custom:
command: deploy/devspace/docker-build.sh
args:
- "--debug=${DEVSPACE_DEBUG}"
clickhouse-operator:
image: altinity/clickhouse-operator
tags:
- devspace-####
build:
custom:
command: deploy/devspace/docker-build.sh
args:
- "--debug=${DEVSPACE_DEBUG}"
deployments:
- name: clickhouse-operator
namespace: ${OPERATOR_NAMESPACE}
kubectl:
manifests:
- deploy/devspace/clickhouse-operator-install.yaml
hooks:
# transform yaml installation manifest to change images and namespace
- command: bash
args:
- -xec
- "CLICKHOUSE_OPERATOR_TAG=${runtime.images.clickhouse-operator.tag} METRICS_EXPORTER_TAG=${runtime.images.metrics-exporter.tag} OPERATOR_NAMESPACE=${OPERATOR_NAMESPACE} deploy/devspace/yq_transform_clickhouse-operator-install.sh"
events: ["before:deploy:*"]
- command: bash
args:
- -xec
- "OPERATOR_NAMESPACE=${OPERATOR_NAMESPACE} deploy/devspace/docker-clean.sh ${runtime.images.clickhouse-operator.image}:${runtime.images.clickhouse-operator.tag}; OPERATOR_NAMESPACE=${OPERATOR_NAMESPACE} deploy/devspace/docker-clean.sh ${runtime.images.metrics-exporter.image}:${runtime.images.metrics-exporter.tag}"
events: ["after:deploy:*"]
dev:
ports:
- imageSelector: ${runtime.images.clickhouse-operator.image}:${runtime.images.clickhouse-operator.tag}
namespace: ${OPERATOR_NAMESPACE}
forward:
- port: 40001
remotePort: 40001
- imageSelector: ${runtime.images.metrics-exporter.image}:${runtime.images.metrics-exporter.tag}
namespace: ${OPERATOR_NAMESPACE}
forward:
- port: 8888
remotePort: 8888
- port: 40002
remotePort: 40002
autoReload:
paths:
- config/**
- cmd/**
- dev/**
- deploy/**
- dockerfile/**
- pkg/**
- .dockerignore
- go.mod
images:
- metrics-exporter
- clickhouse-operator
deployments:
- clickhouse-operator