Update labels

This commit is contained in:
Rob Watson 2022-06-05 17:44:52 +02:00
parent 282fd08959
commit 850d426335
11 changed files with 71 additions and 12 deletions

View File

@ -3,16 +3,20 @@ kind: Deployment
metadata:
name: drone-runner
labels:
app: drone
component: runner
app.kubernetes.io/name: drone-runner
app.kubernetes.io/instance: drone-runner
spec:
selector:
matchLabels:
app.kubernetes.io/name: drone-runner
app.kubernetes.io/instance: drone-runner
app: drone
component: runner
template:
metadata:
labels:
app: drone
component: runner
app.kubernetes.io/name: drone-runner
app.kubernetes.io/instance: drone-runner
spec:

View File

@ -3,16 +3,20 @@ kind: Deployment
metadata:
name: drone
labels:
app: drone
component: web
app.kubernetes.io/name: drone
app.kubernetes.io/instance: drone
spec:
selector:
matchLabels:
app.kubernetes.io/name: drone
app.kubernetes.io/instance: drone
app: drone
component: web
template:
metadata:
labels:
app: drone
component: web
app.kubernetes.io/name: drone
app.kubernetes.io/instance: drone
spec:

View File

@ -3,16 +3,20 @@ kind: Deployment
metadata:
name: element
labels:
app: element
component: web
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
spec:
selector:
matchLabels:
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
app: element
component: web
template:
metadata:
labels:
app: element
component: web
app.kubernetes.io/name: element
app.kubernetes.io/instance: element
spec:

View File

@ -3,16 +3,20 @@ kind: Deployment
metadata:
name: invidious
labels:
app: invidious
component: web
app.kubernetes.io/name: invidious
app.kubernetes.io/instance: invidious
spec:
selector:
matchLabels:
app.kubernetes.io/name: invidious
app.kubernetes.io/instance: invidious
app: invidious
component: web
template:
metadata:
labels:
app: invidious
component: web
app.kubernetes.io/name: invidious
app.kubernetes.io/instance: invidious
spec:

View File

@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
namespace: default
name: drone-runner
labels:
app: drone
rules:
- apiGroups:
- ""

View File

@ -3,17 +3,21 @@ kind: StatefulSet
metadata:
name: gitea
labels:
app: gitea
component: web
app.kubernetes.io/name: gitea
app.kubernetes.io/instance: gitea
spec:
serviceName: gitea
selector:
matchLabels:
app.kubernetes.io/name: gitea
app.kubernetes.io/instance: gitea
app: gitea
component: web
template:
metadata:
labels:
app: gitea
component: web
app.kubernetes.io/name: gitea
app.kubernetes.io/instance: gitea
annotations:

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: drone
app.kubernetes.io/instance: drone
app.kubernetes.io/name: drone
name: drone

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: element
app.kubernetes.io/instance: element
app.kubernetes.io/name: element
name: element

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: Service
metadata:
labels:
app: invidious
app.kubernetes.io/instance: invidious
app.kubernetes.io/name: invidious
name: invidious

View File

@ -30,9 +30,15 @@ configMapGenerator:
- name: invidious-config
files:
- config.yml=invidious-config.yaml
options:
labels:
app: invidious
- name: element-config
files:
- config.json=element-config.json
options:
labels:
app: element
- name: drone-config
literals:
# For Gitea/drone integration to work in dev, Gitea must be served from the
@ -43,7 +49,9 @@ configMapGenerator:
- rpc-host=dev-drone
- rpc-proto=http
- logs-debug=false
options:
labels:
app: drone
secretGenerator:
- name: grafana-credentials
literals:
@ -58,6 +66,9 @@ secretGenerator:
- database-name=invidious
- database-user=kemal
- database-password=kemal
options:
labels:
app: invidious
- name: gitea-config
literals:
- admin-username=rob
@ -65,12 +76,18 @@ secretGenerator:
- admin-email=mail@localhost
files:
- config.ini=gitea-config.ini
options:
labels:
app: gitea
- name: drone-credentials
literals:
- database-url=postgres://postgres:postgres@dev-db:5432/drone?sslmode=disable
- gitea-client-id=55847c4a-c80e-4e77-ab36-c6d102273115
- gitea-client-secret=IU4cb59RNNLuI9PRkUbldcEQ5wYPEZMBK5s6p7vTdVfe
- rpc-secret=f5ec349109bb9bbdf00e4394afd28754
options:
labels:
app: drone
- name: synapse-config
files:
- homeserver.yaml=synapse-homeserver.yaml

View File

@ -18,9 +18,15 @@ configMapGenerator:
- name: invidious-config
files:
- config.yml=invidious-config.yaml
options:
labels:
app: invidious
- name: element-config
files:
- config.json=element-config.json
options:
labels:
app: element
- name: drone-config
literals:
- gitea-server=https://git.netflux.io
@ -29,7 +35,9 @@ configMapGenerator:
- rpc-host=drone.netflux.io
- rpc-proto=https
- logs-debug=false
options:
labels:
app: drone
secretGenerator:
- name: prometheus-credentials
files:
@ -48,18 +56,27 @@ secretGenerator:
files:
- database-url=secrets/invidious-database-url
- database-password=secrets/invidious-database-password
options:
labels:
app: invidious
- name: gitea-config
files:
- admin-username=secrets/gitea-admin-username
- admin-password=secrets/gitea-admin-password
- admin-email=secrets/gitea-admin-email
- config.ini=secrets/gitea-config.ini
options:
labels:
app: gitea
- name: drone-credentials
files:
- database-url=secrets/drone-database-url
- gitea-client-id=secrets/drone-gitea-client-id
- gitea-client-secret=secrets/drone-gitea-client-secret
- rpc-secret=secrets/drone-rpc-secret
options:
labels:
app: drone
- name: synapse-config
files:
- homeserver.yaml=secrets/synapse-homeserver.yaml