Add initial Kubernetes config files #7

Merged
raucao merged 2 commits from feature/6-kubernetes_config into master 2018-12-14 18:06:27 +00:00
Owner

This includes all the resources currently running on https://gitea.kosmos.org

It sets up a persistent data volume for the MySQL database, one for the Gitea data, that Gitea calls the custom folder (config, attachment, avatars, logs, etc). We mount that persistent data volume as /data/gitea. It also creates a Let's Encrypt certificate for gitea.kosmos.org, also saved to the custom folder.

This also includes two scripts:

  • ./script/get_secrets downloads the secrets to the local filesystem so they can be edited
  • ./script/replace_secrets deletes the remote secrets and creates them again from the local ones in kubernetes/config/*

Closes #6

This includes all the resources currently running on https://gitea.kosmos.org It sets up a persistent data volume for the MySQL database, one for the Gitea data, that Gitea calls the custom folder (config, attachment, avatars, logs, etc). We mount that persistent data volume as /data/gitea. It also creates a Let's Encrypt certificate for gitea.kosmos.org, also saved to the custom folder. This also includes two scripts: * `./script/get_secrets` downloads the secrets to the local filesystem so they can be edited * `./script/replace_secrets` deletes the remote secrets and creates them again from the local ones in kubernetes/config/* Closes #6
raucao reviewed 2018-12-14 16:38:43 +00:00

What initial setup would that be? Wouldn't the ini be there from the very start now?

What initial setup would that be? Wouldn't the ini be there from the very start now?
raucao reviewed 2018-12-14 16:39:11 +00:00

That seems like not a lot of space for git repos. Can it be increased with an existing volume later on? Should it be more from the start?

That seems like not a lot of space for git repos. Can it be increased with an existing volume later on? Should it be more from the start?
Owner

Very cool! I used the scripts to get the configs, edited them a bit (disabled OpenID and creating orgs for example), then pushed them back and applied the server. All worked flawlessly.

Good job! 👍

Very cool! I used the scripts to get the configs, edited them a bit (disabled OpenID and creating orgs for example), then pushed them back and applied the server. All worked flawlessly. Good job! :+1:
greg reviewed 2018-12-14 17:01:48 +00:00
Author
Owner

Right, I think we can remove all these environment variables

Right, I think we can remove all these environment variables
greg reviewed 2018-12-14 17:06:27 +00:00
Author
Owner

Volumes can be expanded later (https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims), the 1GB size is something I used when I was setting everything up initially and forgot to change, it should indeed be higher

Volumes can be expanded later (https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims), the 1GB size is something I used when I was setting everything up initially and forgot to change, it should indeed be higher
Owner

Update: as discussed on IRC, just changing the secrets isn't actually enough to re-deploy and apply them. Need to change the deployment config for that.

Update: as discussed on IRC, just changing the secrets isn't actually enough to re-deploy and apply them. Need to change the deployment config for that.
Author
Owner

I have changed the script that replaces the secrets to patch the deployment, causing the pod to restart

I have changed the script that replaces the secrets to patch the deployment, causing the pod to restart
Owner
No description provided.
raucao closed this pull request 2018-12-14 18:06:27 +00:00
raucao deleted branch feature/6-kubernetes_config 2018-12-14 18:06:35 +00:00
Owner

What happened to removing the obsolete env vars? I just found them in master.

What happened to removing the obsolete env vars? I just found them in master.
Author
Owner

What happened to removing the obsolete env vars? I just found them in master.

Just done in #9

> What happened to removing the obsolete env vars? I just found them in master. Just done in #9
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: kosmos/gitea.kosmos.org#7
No description provided.