Example of generating multiple resources from a single template file
- Dominant language
- Smarty
- Stars
- 103
- Forks
- 358
- PR merge metrics
- No merged PRs in 30d
Description
In the `values.yaml` file, we could specify several sites:
```
sites:
- name: foo
source: "foo.com"
- name: bar
source: "bar.com
- name: baz
source: "baz.com
```
Then the chart would generate three deployments and three services, one for each site.
Then we could add an ingress that includes each of the services:
```
spec:
rules:
- host: hello-world.com
http:
paths:
- backend:
service:
name: foo
port:
name: http
path: /foo
pathType: Prefix
- backend:
service:
name: bar
port:
name: http
path: /bar
pathType: Prefix
- backend:
service:
name: baz
port:
name: http
path: /baz
pathType: Prefix
```
Then each site would be accessible via the following URLs:
- hello-world.com/foo
- hello-world.com/bar
- hello-world.com/baz
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.