-
-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Various Kubernetes deployment improvements (#862)
* changed the secrets from configmap to secret object, create ingress instead of loadbalancer. Implemented the generation of a secret from the .env file and then put as environment variables into the deployments. Nextauth_URL is now set in the kustomization file and is then generated into a configmap and put as an env into the deployments. Opionated change: the web service is now a clusterIP Service and an ingress object is included. * changed the tls secret name in kustomize to a more example name * fixed image name in kustomization so the version tag gets replaced properly * tags are without v, otherwise we get an imagepullerror * removed unneccessary parts of the .env.sample * split env and secrets, added documentation, created sample ingress. changed the default from ingress back to Loadbalancer. Added Documentation on how to change to ingress and add TLS Support. split env to secret and env file which have to be configured before deploying.
- Loading branch information
Showing
7 changed files
with
86 additions
and
17 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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
HOARDER_VERSION=release | ||
# Use `openssl rand -base64 36` to generate the random strings | ||
NEXTAUTH_SECRET=generated_secret | ||
MEILI_MASTER_KEY=generated_secret | ||
# Put your configuration options here | ||
NEXTAUTH_URL=http://localhost:3000 | ||
NEXT_PUBLIC_SECRET="my-super-duper-secret-string" | ||
HOARDER_VERSION=release |
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,4 @@ | ||
# Use `openssl rand -base64 36` to generate the random strings | ||
NEXTAUTH_SECRET=generated_secret | ||
MEILI_MASTER_KEY=generated_secret | ||
NEXT_PUBLIC_SECRET="my-super-duper-secret-string" |
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,17 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: hoarder-web-ingress | ||
namespace: hoarder | ||
spec: | ||
rules: | ||
- host: "hoarder.example.com" | ||
http: | ||
paths: | ||
- path: "/" | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: "web" | ||
port: | ||
number: 3000 |
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
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