From 0cf7ba527eff99e9d78288dc8891b06c45ba36aa Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 14 Dec 2018 18:12:39 +0000 Subject: [PATCH] Move Kubernetes docs out of README --- README.md | 31 ------------------------------- doc/kubernetes.md | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 31 deletions(-) create mode 100644 doc/kubernetes.md diff --git a/README.md b/README.md index 8f5e678..f9bc1dc 100644 --- a/README.md +++ b/README.md @@ -7,34 +7,3 @@ Feel free to [open issues] for questions, suggestions, bugs, to-do items, and whatever else you want to discuss or resolve. [open issues]: https://gitea.kosmos.org/kosmos/gitea.kosmos.org/issues - -## Kubernetes - -### Apply changes to resources - -``` -kubectl apply -f gitea-db.yaml -kubectl apply -f gitea-server.yaml -``` - -### Write the secrets to the local filesystem - -``` -./script/get_secrets -``` - -It writes the secrets (currently the app.ini file, as well as auto-generated -TLS certificates that are only used when no Let's Encrypt cert is available) -to the `kubernetes/config/` folder. These files are not in Git because they -contain credentials. - -Once you have edited them locally, you need to delete the secrets stored on -Kubernetes before uploading them again. This is done by this script: - -``` -./script/replace_secrets -``` - -### Reuse a released persistent volume: - -https://github.com/kubernetes/kubernetes/issues/48609#issuecomment-314066616 diff --git a/doc/kubernetes.md b/doc/kubernetes.md new file mode 100644 index 0000000..6ae78df --- /dev/null +++ b/doc/kubernetes.md @@ -0,0 +1,32 @@ +# Kubernetes / GKE + +This Gitea instance is currently hosted on Google Kubernetes Engine. + +## Apply changes to resources + +``` +kubectl apply -f gitea-db.yaml +kubectl apply -f gitea-server.yaml +``` + +## Write the secrets to the local filesystem + +``` +./script/get_secrets +``` + +It writes the secrets (currently the app.ini file, as well as auto-generated +TLS certificates that are only used when no Let's Encrypt cert is available) +to the `kubernetes/config/` folder. These files are not in Git because they +contain credentials. + +Once you have edited them locally, you need to delete the secrets stored on +Kubernetes before uploading them again. This is done by this script: + +``` +./script/replace_secrets +``` + +## Reuse a released persistent volume: + +https://github.com/kubernetes/kubernetes/issues/48609#issuecomment-314066616