8 Commits

Author SHA1 Message Date
James E. Blair
232f739e5d Fix gitea k8s files
The secret file needs different yaml template handling due to
multiline strings, and the service has a duplicate name.

Change-Id: I9930c4ff713ba87e1b4c819f6c80cab5b0ffd165
2019-02-14 16:39:12 -08:00
Zuul
8b2e6e511c Merge "Switch gitea to TLS" 2019-02-14 22:45:45 +00:00
James E. Blair
4ae46fd9c3 Switch gitea to TLS
Gitea supports internal TLS termination as well as redirection of
http to https.  That may be simpler than terminating in a reverse
proxy.  Let's try it.

Also, make the dockerfile match the expectation of the job that
there will be a gitea-init stage.

Also, fix the repository root setting in app.ini.

Change-Id: Ia6b66b53cebdb1afa49fef89a0559615f98052f1
2019-02-14 13:41:40 -08:00
Monty Taylor
7d08c7004a Trigger deployment with gitea 1.7.1
Change-Id: Iaced1140c5f7712d65b5ffc75154583de59e4220
2019-02-06 09:29:39 -08:00
Monty Taylor
e8a26b5790 Trigger deployment with gitea 1.6.3
Change-Id: Ia53aadcdbd17ac3228cf2204d950793ae70c4d50
2019-02-06 09:29:39 -08:00
Monty Taylor
3513dfb9fc Prevent gitea pods from being co-scheduled
For scale out purposes, we only want one gitea pod per underlying
kubernetes node. Use podAntiAffinity to accomplish this.

Change-Id: Icd8f70cf7e1640e58133f67e8a519267ac3b36d3
2019-02-06 09:29:39 -08:00
Monty Taylor
35851e2053 Set APP_NAME for gitea
Change the app name from gitea to opendev. Also, add a tagline
because why not?

And add two missing settings.  And fix the pandoc command for
RST rendering.  And fix the gitea URL.  Keep one copy of old
replicasets.  Keep 4 replicas.  Add a dummp env variable to trigger
deployments.

Change-Id: I0182d18a838d444d5853238fa2e48b4511383a94
2019-02-05 18:58:16 +00:00
James E. Blair
a6328eee0c Add gitea k8s resource definitions and playbook
This adds k8s resource definitions for running gitea, and an ansible
playbook to create them.

It also includes ansible playbooks to create orgs and repos.

Change-Id: Ib64597512c6a85d7e1495d18ae42b242f9af5a67
2019-02-05 18:52:21 +00:00