-
Notifications
You must be signed in to change notification settings - Fork 6
/
project.garden.yml
50 lines (44 loc) · 1.45 KB
/
project.garden.yml
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
apiVersion: garden.io/v1
kind: Project
name: vote-demo-quickstart
defaultEnvironment: ephemeral
dotIgnoreFile: .gitignore
variables:
postgresUsername: postgres
postgresDatabase: postgres
postgresPassword: postgres
# Replace underscores as Kubernetes namespaces do not allow them.
userNamespace: vote-demo-quickstart-${kebabCase(local.username)}
environments:
- name: local
defaultNamespace: ${var.userNamespace}
variables:
baseHostname: local.demo.garden
- name: remote
defaultNamespace: ${var.userNamespace}
variables:
baseHostname: "<add you values here>"
imagePullSecretName: "<add you values here>"
- name: ephemeral
providers:
- name: local-kubernetes
environments: [local]
namespace: ${environment.namespace}
defaultHostname: ${var.baseHostname}
- name: ephemeral-kubernetes
environments: [ephemeral]
# You can use Garden with your own remote Kubernetes clusters as well.
# Please see our docs to learn how to configure the values below: https://docs.garden.io/kubernetes-plugins/remote-k8s
- name: kubernetes
environments: [remote]
context: "<add your values>"
ingressClass: "nginx"
buildMode: cluster-buildkit
imagePullSecrets:
- name: ${var.imagePullSecretName}
namespace: default
deploymentRegistry:
hostname: "<add your values>"
namespace: "<add your values>"
namespace: ${environment.namespace}
defaultHostname: ${var.baseHostname}