mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
fix(common): Release 2.0.2 (#196)
This commit is contained in:
parent
d86b0de790
commit
f729651dbe
16 changed files with 260 additions and 41 deletions
80
docs/app-template/howto/multiple-services.md
Normal file
80
docs/app-template/howto/multiple-services.md
Normal file
|
@ -0,0 +1,80 @@
|
|||
# Multiple Services
|
||||
|
||||
## With a single controller
|
||||
|
||||
It is possible to have multiple Service objects that point to a single controller.
|
||||
|
||||
### Example
|
||||
|
||||
```yaml
|
||||
controllers:
|
||||
main:
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/mendhak/http-https-echo
|
||||
tag: 30
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
main:
|
||||
# The controller for this service is set to
|
||||
# "main" by the default app-template values
|
||||
# controller: main
|
||||
ports:
|
||||
http:
|
||||
port: 8080
|
||||
second:
|
||||
controller: main # (1)!
|
||||
ports:
|
||||
http:
|
||||
port: 8081
|
||||
```
|
||||
|
||||
1. Point to the controller with the "main" identifier
|
||||
|
||||
## With multiple controllers
|
||||
|
||||
It is also possible have multiple Service objects that point to different controllers.
|
||||
|
||||
### Example
|
||||
|
||||
```yaml
|
||||
controllers:
|
||||
main:
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/mendhak/http-https-echo
|
||||
tag: 30
|
||||
pullPolicy: IfNotPresent
|
||||
second:
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/mendhak/http-https-echo
|
||||
tag: 30
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
service:
|
||||
main:
|
||||
# The controller for this service is set to
|
||||
# "main" by the default app-template values
|
||||
# controller: main
|
||||
ports:
|
||||
http:
|
||||
port: 8080
|
||||
second:
|
||||
controller: main # (1)!
|
||||
ports:
|
||||
http:
|
||||
port: 8081
|
||||
third:
|
||||
controller: second # (2)!
|
||||
ports:
|
||||
http:
|
||||
port: 8081
|
||||
```
|
||||
|
||||
1. Point to the controller with the "main" identifier
|
||||
2. Point to the controller with the "second" identifier
|
Loading…
Add table
Add a link
Reference in a new issue