don't know why this shit doesn't run anymore

This commit is contained in:
2022-09-10 13:32:34 +02:00
parent 748b94f069
commit 30ba290918
4 changed files with 63 additions and 16 deletions

View File

@@ -76,9 +76,30 @@ kind: PersistentVolumeClaim
metadata: metadata:
name: apt-cacher-volume name: apt-cacher-volume
spec: spec:
storageClassName: nfs-ssd storageClassName: nfs-ssd-ebin02
volumeName: apt-cacher-ng
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 40Gi storage: 40Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: apt-cacher-ng
spec:
storageClassName: "nfs-ssd-ebin02"
nfs:
path: /data/raid1-ssd/k8s-data/apt-cacher-ng
server: ebin02
capacity:
storage: 40Gi
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
persistentVolumeReclaimPolicy: Retain
claimRef:
kind: PersistentVolumeClaim
name: apt-cacher-volume
namespace: live-infra

View File

@@ -45,16 +45,20 @@ spec:
value: gitea value: gitea
- name: DB_PASSWD - name: DB_PASSWD
value: giteaEu94XSS4gKpheSBoMsIs value: giteaEu94XSS4gKpheSBoMsIs
- name: GITEA__indexer__ISSUE_INDEXER_TYPE - name: GITEA__server__ROOT_URL
value: db value: http://git-ui.lan/
#- name: GITEA__indexer__ISSUE_INDEXER
# value: redis
#- name: GITEA__indexer__ISSUE_INDEXER_QUEUE_CONN_STR
# value: addrs=172.23.255.6:6379 db=1
- name: GITEA__log__LEVEL - name: GITEA__log__LEVEL
value: warn value: Warn
- name: GITEA__log__MODE - name: GITEA__log__MODE
value: console value: console
- name: GITEA__queue__TYPE #- name: GITEA__queue__TYPE
value: persistable-channel # value: redis
#- name: GITEA__queue__CONN_STR #- name: GITEA__queue__CONN_STR
#value: redis://redis-standalone.live-env.svc.cluster.local:6397/0 # value: redis://172.23.255.6:6379/0
volumeMounts: volumeMounts:
- name: gitea - name: gitea
mountPath: /data mountPath: /data
@@ -66,13 +70,13 @@ spec:
containerPort: 22 containerPort: 22
protocol : TCP protocol : TCP
livenessProbe: livenessProbe:
initialDelaySeconds: 30 initialDelaySeconds: 300
periodSeconds: 10 periodSeconds: 10
httpGet: httpGet:
path: / path: /
port: http port: http
readinessProbe: readinessProbe:
initialDelaySeconds: 30 initialDelaySeconds: 300
periodSeconds: 10 periodSeconds: 10
httpGet: httpGet:
path: / path: /
@@ -96,7 +100,8 @@ metadata:
labels: labels:
app: gitea app: gitea
spec: spec:
storageClassName: nfs-ssd storageClassName: nfs-ssd-ebin02
volumeName: gitea
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
@@ -104,6 +109,26 @@ spec:
storage: 20Gi storage: 20Gi
--- ---
apiVersion: v1 apiVersion: v1
kind: PersistentVolume
metadata:
name: gitea
spec:
storageClassName: "nfs-ssd-ebin02"
nfs:
path: /data/raid1-ssd/k8s-data/gitea-data
server: ebin02
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
persistentVolumeReclaimPolicy: Retain
claimRef:
kind: PersistentVolumeClaim
name: gitea
namespace: live-env
---
apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: gitea name: gitea

View File

@@ -49,7 +49,7 @@ spec:
- key: app - key: app
operator: In operator: In
values: values:
- promtheus - prometheus
- loki - loki
topologyKey: kubernetes.io/hostname topologyKey: kubernetes.io/hostname
# - name: prometheus-exporter # - name: prometheus-exporter

View File

@@ -5,6 +5,7 @@ metadata:
namespace: live-env namespace: live-env
data: data:
redis.conf: |- redis.conf: |-
bind * -::*
appendonly yes appendonly yes
maxmemory 5mb maxmemory 5mb
--- ---