This commit is contained in:
parent
831a85436f
commit
965d3abf53
8 changed files with 55 additions and 16 deletions
|
@ -1,15 +1,15 @@
|
|||
- name: Configure cluster
|
||||
hosts: localhost
|
||||
roles:
|
||||
# - role: cifs-csi
|
||||
# - role: skooner
|
||||
# - role: coder
|
||||
# - role: codimd
|
||||
# - role: prometheus
|
||||
# - role: postgres
|
||||
- role: cifs-csi
|
||||
- role: skooner
|
||||
- role: coder
|
||||
- role: codimd
|
||||
- role: prometheus
|
||||
- role: postgres
|
||||
- role: hcloud
|
||||
# - role: minio
|
||||
# - role: gitea
|
||||
# - role: drone
|
||||
# - role: fider
|
||||
# - role: nextcloud
|
||||
- role: minio
|
||||
- role: gitea
|
||||
- role: drone
|
||||
- role: fider
|
||||
- role: nextcloud
|
||||
|
|
|
@ -53,5 +53,5 @@ coder:
|
|||
name: coder-secrets
|
||||
key: OIDC_CLIENT_SECRET
|
||||
|
||||
service:
|
||||
service:
|
||||
type: ClusterIP
|
|
@ -46,7 +46,8 @@ codimd:
|
|||
username: preferred_username
|
||||
displayName: name
|
||||
email: email
|
||||
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
|
||||
|
||||
postgresql:
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
image:
|
||||
tag: 1.8.3
|
||||
|
||||
replicaCount: 4
|
||||
|
||||
extraSecretNamesForEnvFrom:
|
||||
- drone-runner-secrets
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
monitoring:
|
||||
podMonitor:
|
||||
enabled: true
|
||||
|
||||
networking:
|
||||
enabled: true
|
||||
clusterCIDR: 10.42.0.0/24
|
|
@ -10,5 +10,7 @@ commonLabels:
|
|||
resources:
|
||||
- "resources/deployment.yaml"
|
||||
- "resources/service.yaml"
|
||||
- "resources/ingress.yaml"
|
||||
- "resources/rbac/service_account.yaml"
|
||||
- "resources/rbac/sa_token_secret.yaml"
|
||||
- "resources/rbac/cluster_role_binding.yaml"
|
17
k8s/roles/skooner/files/resources/ingress.yaml
Normal file
17
k8s/roles/skooner/files/resources/ingress.yaml
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: skooner
|
||||
spec:
|
||||
rules:
|
||||
- host: skooner.icb4dc0.de
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
service:
|
||||
name: skooner
|
||||
port:
|
||||
number: 8000
|
||||
pathType: Prefix
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: prskr-cluster-admin
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: prskr
|
||||
namespace: kube-system
|
||||
roleRef:
|
||||
kind: ClusterRole
|
||||
name: cluster-admin
|
||||
apiGroup: rbac.authorization.k8s.io
|
Loading…
Reference in a new issue