-
-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor All Services - services (dict, including main service) - additionalServices (list) * Add Documentation and standardised questions.yaml layout for services * Update all existing Apps to 2.0.0 * Fix whiteline error * fix addons
- Loading branch information
Kjeld Schouten-Lebbing
committed
Mar 3, 2021
1 parent
ed2abfe
commit 6ce336d
Showing
532 changed files
with
2,769 additions
and
1,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
# Services | ||
|
||
Every App needs to be exposed to something, either an UI, API or other containers.However with Kubernetes we don't directly connect to the containers running the App, because those might be on another node or there might be multiple "high available" containers for the App. Instead we use what is called `Services`. Services are simply put "Internal Load-Balancers", they also guaranteed to be reachable by (internal!) DNS name and (in some cases) prevent traffic from reaching your App when the healthcheck isn't finished yet (or is failing). | ||
|
||
### Two kinds of services | ||
|
||
##### Main Service | ||
|
||
Every App is required to have a main service, the primary thing that users (or other Apps!) connect with. No mater if it's a webUI, an API, a database connection or something totally else, A service is always required. | ||
|
||
Please keep in mind that every App is different, some just have one service (which *ALWAYS* has to be called `main`) and others need more (which each has to have an unique name). Every App also uses different ports, so please alter accordingly. | ||
|
||
``` | ||
- variable: services | ||
group: "Networking" | ||
label: "Configure Service" | ||
schema: | ||
type: dict | ||
attrs: | ||
- variable: main | ||
label: "Main service" | ||
description: "The Primary service on which the healthcheck runs, often the webUI" | ||
schema: | ||
type: dict | ||
attrs: | ||
- variable: enabled | ||
label: "Enable the service" | ||
schema: | ||
type: boolean | ||
default: true | ||
hidden: true | ||
- variable: type | ||
label: "Service type" | ||
description: "ClusterIP's are only internally available, nodePorts expose the container to the host node System" | ||
schema: | ||
type: string | ||
default: "ClusterIP" | ||
enum: | ||
- value: "nodePort" | ||
description: "NodePort" | ||
- value: "ClusterIP" | ||
description: "ClusterIP" | ||
- variable: port | ||
label: "Port configuration" | ||
schema: | ||
type: dict | ||
attrs: | ||
- variable: protocol | ||
label: "Port Type" | ||
schema: | ||
type: string | ||
default: "TCP" | ||
hidden: true | ||
enum: | ||
- value: TCP | ||
description: "TCP" | ||
- value: "UDP" | ||
description: "UDP" | ||
- variable: port | ||
label: "container port" | ||
schema: | ||
type: int | ||
default: 80 | ||
editable: false | ||
hidden: true | ||
- variable: targetport | ||
label: "Internal Service port" | ||
description: "When connecting internally to this App, you'll need this port" | ||
schema: | ||
type: int | ||
default: 80 | ||
editable: true | ||
- variable: nodePort | ||
label: "(optional) host nodePort to expose to" | ||
description: "only get used when nodePort is selected" | ||
schema: | ||
type: int | ||
min: 9000 | ||
max: 65535 | ||
default: 36052 | ||
required: true | ||
``` | ||
|
||
##### Unlimited custom services | ||
|
||
in some edgecases users might need or want to have the option to add unlimited custom Services. While we _highly_ suggest not doing so, these services can be added with the following standardised template: | ||
|
||
``` | ||
- variable: additionalServices | ||
label: "Custom Services" | ||
group: "Networking" | ||
schema: | ||
type: list | ||
default: [] | ||
items: | ||
- variable: additionalService | ||
label: "Custom Service" | ||
schema: | ||
type: dict | ||
attrs: | ||
- variable: enabled | ||
label: "Enable the service" | ||
schema: | ||
type: boolean | ||
default: true | ||
hidden: true | ||
- variable: type | ||
label: "Service type" | ||
description: "ClusterIP's are only internally available, nodePorts expose the container to the host node System" | ||
schema: | ||
type: string | ||
default: "ClusterIP" | ||
enum: | ||
- value: "nodePort" | ||
description: "NodePort" | ||
- value: "ClusterIP" | ||
description: "ClusterIP" | ||
- variable: port | ||
label: "Port configuration" | ||
schema: | ||
type: dict | ||
attrs: | ||
- variable: port | ||
label: "container port" | ||
schema: | ||
type: int | ||
default: 80 | ||
editable: false | ||
hidden: true | ||
- variable: targetport | ||
label: "Internal Service port" | ||
description: "When connecting internally to this App, you'll need this port" | ||
schema: | ||
type: int | ||
default: 80 | ||
editable: true | ||
- variable: nodePort | ||
label: "(optional) host nodePort to expose to" | ||
description: "only get used when nodePort is selected" | ||
schema: | ||
type: int | ||
min: 9000 | ||
max: 65535 | ||
default: 36052 | ||
required: true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
ansi (1.5.0) | ||
builder (3.2.4) | ||
coderay (1.1.3) | ||
m (1.5.1) | ||
method_source (>= 0.6.7) | ||
rake (>= 0.9.2.2) | ||
method_source (1.0.0) | ||
mini_portile2 (2.5.0) | ||
minitest (5.14.4) | ||
minitest-implicit-subject (1.4.0) | ||
minitest | ||
minitest-reporters (1.4.3) | ||
ansi | ||
builder | ||
minitest (>= 5.0) | ||
ruby-progressbar | ||
multi_json (1.15.0) | ||
pry (0.14.0) | ||
coderay (~> 1.1) | ||
method_source (~> 1.0) | ||
rake (13.0.3) | ||
ruby-jq (0.2.1) | ||
mini_portile2 (>= 2.2.0) | ||
multi_json | ||
ruby-progressbar (1.11.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
m | ||
minitest | ||
minitest-implicit-subject | ||
minitest-reporters | ||
pry | ||
ruby-jq | ||
|
||
BUNDLED WITH | ||
2.1.4 |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
charts/bazarr/1.6.2/app-readme.md → charts/bazarr/2.0.0/app-readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
Bazarr is a companion application to Bazarr and Radarr. It manages and downloads subtitles based on your requirements | ||
|
Binary file not shown.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.