mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 08:37:03 +02:00
Signed-off-by: Christopher Larivière <lariviere.c@gmail.com> Co-authored-by: Christopher Larivière <lariviere.c@gmail.com> Co-authored-by: Markus Reiter <me@reitermark.us>
1.5 KiB
1.5 KiB
Multiple Services
With a single controller
It is possible to have multiple Service objects that point to a single controller.
Example
controllers:
main:
containers:
main:
image:
repository: ghcr.io/mendhak/http-https-echo
tag: 31
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
- 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
controllers:
main:
containers:
main:
image:
repository: ghcr.io/mendhak/http-https-echo
tag: 31
pullPolicy: IfNotPresent
second:
containers:
main:
image:
repository: ghcr.io/mendhak/http-https-echo
tag: 31
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
- Point to the controller with the "main" identifier
- Point to the controller with the "second" identifier