-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathskaffold.yaml
More file actions
148 lines (143 loc) · 4.24 KB
/
skaffold.yaml
File metadata and controls
148 lines (143 loc) · 4.24 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
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
139
140
141
142
143
144
145
146
147
148
# development version of the Python docs
apiVersion: skaffold/v4beta13
kind: Config
metadata:
name: dev-docs
build:
artifacts:
- image: hololinked_docs_dev
context: .
docker:
dockerfile: Dockerfile
target: dev
# mkdocs reloading not working
sync:
manual:
- src: "docs/**/*"
dest: "/app"
- src: "mkdocs.yml"
dest: "/app"
- src: "main.py"
dest: "/app"
tagPolicy:
envTemplate:
template: dev
local:
push: true
deploy:
helm:
releases:
- name: dev-python-docs
chartPath: deployment/helm/container-helm-chart
namespace: development
createNamespace: true
setValues:
nameOverride: dev-python-docs
image.ports.containerPort: 8000
setValueTemplates:
image:
repository: "{{ .IMAGE_REPO_hololinked_docs_dev }}"
tag: "{{ .IMAGE_TAG_hololinked_docs_dev }}@{{ .IMAGE_DIGEST_hololinked_docs_dev }}"
- name: dev-python-docs-ingress
chartPath: deployment/helm/ingress-helm-chart
namespace: development
createNamespace: true
valuesFiles:
- deployment/helm/ingress-helm-chart/values.yaml
- deployment/ingress-values.yaml
setValues:
nameOverride: dev-python-docs-ingress
---
# staging a production version of the Python docs
apiVersion: skaffold/v4beta13
kind: Config
metadata:
name: staging-docs
build:
artifacts:
- image: hololinked_docs_staging
context: .
docker:
dockerfile: Dockerfile
target: prod
tagPolicy:
envTemplate:
template: staging
local:
push: true
deploy:
helm:
releases:
- name: staging-python-docs
chartPath: deployment/helm/container-helm-chart
namespace: staging
createNamespace: true
setValues:
nameOverride: staging-python-docs
image.ports.containerPort: 80
setValueTemplates:
image:
repository: "{{ .IMAGE_REPO_hololinked_docs_staging }}"
tag: "{{ .IMAGE_TAG_hololinked_docs_staging }}@{{ .IMAGE_DIGEST_hololinked_docs_staging }}"
- name: staging-python-docs-ingress
chartPath: deployment/helm/ingress-helm-chart
namespace: staging
createNamespace: true
valuesFiles:
- deployment/helm/ingress-helm-chart/values.yaml
- deployment/ingress-values.yaml
setValues:
nameOverride: staging-python-docs-ingress
rules[0].host: docs.staging.hololinked.dev
rules[0].http.paths[0].backend.service.name: staging-python-docs
tls[0].hosts[0]: docs.staging.hololinked.dev
tls[0].secretName: docs-staging-hololinked-dev-tls
annotations:
cert-manager\.io/cluster-issuer: letsencrypt-prod
---
# production version of the Python docs
apiVersion: skaffold/v4beta13
kind: Config
metadata:
name: docs
build:
artifacts:
- image: hololinked_docs
context: .
docker:
dockerfile: Dockerfile
target: prod
tagPolicy:
envTemplate:
template: prod
local:
push: true
deploy:
helm:
releases:
- name: hololinked-python-docs
chartPath: deployment/helm/container-helm-chart
namespace: docs
createNamespace: true
setValues:
nameOverride: hololinked-python-docs
image.ports.containerPort: 80
setValueTemplates:
image:
repository: "{{ .IMAGE_REPO_hololinked_docs }}"
tag: "{{ .IMAGE_TAG_hololinked_docs }}@{{ .IMAGE_DIGEST_hololinked_docs }}"
- name: hololinked-python-docs-ingress
chartPath: deployment/helm/ingress-helm-chart
namespace: docs
createNamespace: true
valuesFiles:
- deployment/helm/ingress-helm-chart/values.yaml
- deployment/ingress-values.yaml
setValues:
nameOverride: hololinked-python-docs-ingress
rules[0].host: docs.hololinked.dev
rules[0].http.paths[0].backend.service.name: hololinked-python-docs
tls[0].hosts[0]: docs.hololinked.dev
tls[0].secretName: docs-hololinked-dev-tls
annotations:
cert-manager\.io/cluster-issuer: letsencrypt-prod