Updated repository to the new configuration.
This commit is contained in:
parent
25dde6a119
commit
1945f193ea
31 changed files with 766 additions and 866 deletions
101
pods/git/git-pod.yml
Normal file
101
pods/git/git-pod.yml
Normal file
|
@ -0,0 +1,101 @@
|
|||
apiversion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: git-pod
|
||||
annotations:
|
||||
io.podman.annotations.infra.name: git-pod-infra
|
||||
spec:
|
||||
containers:
|
||||
- name: gitea
|
||||
image: docker.io/gitea/gitea:latest
|
||||
env:
|
||||
- name: USER_UID
|
||||
value: "1000"
|
||||
- name: USER_GID
|
||||
value: "1000"
|
||||
- name: GITEA__database__HOST
|
||||
value: "git-pod-postgres"
|
||||
- name: GITEA__database__USER
|
||||
value: "postgres"
|
||||
- name: GITEA__database__PASSWD
|
||||
valuefrom:
|
||||
secretkeyref:
|
||||
name: git-secrets
|
||||
key: postgres-password
|
||||
- name: GITEA__database__NAME
|
||||
value: "gitea"
|
||||
ports:
|
||||
- containerport: 3000
|
||||
hostport: 2080
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- mountpath: /data
|
||||
name: gitea-data
|
||||
- mountpath: /etc/localtime
|
||||
name: localtime
|
||||
readonly: true
|
||||
|
||||
- name: documentation
|
||||
image: git-mkdocs:latest
|
||||
env:
|
||||
- name: GIT_REPO_URL
|
||||
value: "https://git.bijl.us/lnco/documentation.git"
|
||||
- name: PORT
|
||||
value: 3100
|
||||
- containerport: 3100
|
||||
hostport: 2180
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- mountpath: /etc/localtime
|
||||
name: localtime
|
||||
readonly: true
|
||||
|
||||
- name: wiki
|
||||
image: git-mkdocs-wiki:latest
|
||||
env:
|
||||
- name: GIT_REPO_URL
|
||||
value: "https://git.bijl.us/luc/mathematics-physics-wiki.git"
|
||||
- name: WIKI_LANG
|
||||
value: "en nl"
|
||||
- name: PORT
|
||||
value: 3200
|
||||
- containerport: 3200
|
||||
hostport: 2280
|
||||
protocol: TCP
|
||||
volumemounts:
|
||||
- mountpath: /etc/localtime
|
||||
name: localtime
|
||||
readonly: true
|
||||
|
||||
- name: postgres
|
||||
image: docker.io/library/postgres:16-alpine
|
||||
env:
|
||||
- name: POSTGRES_PASSWORD
|
||||
valuefrom:
|
||||
secretkeyref:
|
||||
name: git-secrets
|
||||
key: postgres-password
|
||||
volumemounts:
|
||||
- mountpath: /dump
|
||||
name: postgres-dump
|
||||
- mountpath: /var/lib/postgresql/data
|
||||
name: postgres-data
|
||||
- mountpath: /etc/localtime
|
||||
name: localtime
|
||||
readonly: true
|
||||
|
||||
volumes:
|
||||
- persistentvolumeclaim:
|
||||
claimname: git-pod-gitea-data
|
||||
name: gitea-data
|
||||
- hostpath:
|
||||
path: <home>/.dump/git
|
||||
type: Directory
|
||||
name: postgres-dump
|
||||
- persistentvolumeclaim:
|
||||
claimname: git-pod-postgres-data
|
||||
name: postgres-data
|
||||
- hostpath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
name: localtime
|
7
pods/git/git-secrets.yml
Normal file
7
pods/git/git-secrets.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiversion: v1
|
||||
data:
|
||||
postgres-password: <base64-secret>
|
||||
kind: Secret
|
||||
metadata:
|
||||
creationtimestamp: null
|
||||
name: git-secrets
|
Loading…
Add table
Add a link
Reference in a new issue