gitea and apt-cacher
This commit is contained in:
@@ -5,7 +5,7 @@ metadata:
|
|||||||
name: descheduler-cronjob
|
name: descheduler-cronjob
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
spec:
|
spec:
|
||||||
schedule: "*/15 * * * *"
|
schedule: "*/50 * * * *"
|
||||||
concurrencyPolicy: "Forbid"
|
concurrencyPolicy: "Forbid"
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ data:
|
|||||||
policy.yaml: |
|
policy.yaml: |
|
||||||
apiVersion: "descheduler/v1alpha1"
|
apiVersion: "descheduler/v1alpha1"
|
||||||
kind: "DeschedulerPolicy"
|
kind: "DeschedulerPolicy"
|
||||||
maxNoOfPodsToEvictPerNode: 3
|
maxNoOfPodsToEvictPerNode: 1
|
||||||
strategies:
|
strategies:
|
||||||
"RemoveDuplicates":
|
"RemoveDuplicates":
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -45,14 +45,22 @@ spec:
|
|||||||
value: gitea
|
value: gitea
|
||||||
- name: DB_PASSWD
|
- name: DB_PASSWD
|
||||||
value: giteaEu94XSS4gKpheSBoMsIs
|
value: giteaEu94XSS4gKpheSBoMsIs
|
||||||
- name: GITEA__indexer__ISSUE_INDEXER_TYPE
|
#- name: GITEA__indexer__ISSUE_INDEXER
|
||||||
value: db
|
#value: redis
|
||||||
|
#- name: GITEA__indexer__ISSUE_INDEXER_QUEUE_CONN_STR
|
||||||
|
#value: addrs=redis-standalone.live-env.svc.cluster.local:6379 db=1
|
||||||
|
- name: GITEA__packages__ENABLED
|
||||||
|
value: "true"
|
||||||
- name: GITEA__log__LEVEL
|
- name: GITEA__log__LEVEL
|
||||||
value: warn
|
value: trace
|
||||||
- name: GITEA__log__MODE
|
- name: GITEA__log__MODE
|
||||||
value: console
|
value: file
|
||||||
- name: GITEA__queue__TYPE
|
- name: GITEA__log__ROUTER
|
||||||
value: persistable-channel
|
value: file
|
||||||
|
- name: GITEA__log__MACARON
|
||||||
|
value: file
|
||||||
|
#- name: GITEA__queue__TYPE
|
||||||
|
#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://redis-standalone.live-env.svc.cluster.local:6397/0
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -65,18 +73,18 @@ spec:
|
|||||||
- name: ssh
|
- name: ssh
|
||||||
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: /
|
||||||
port: http
|
# port: http
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: "300Mi"
|
memory: "300Mi"
|
||||||
|
|||||||
Submodule cluster-monitoring updated: f982c2a477...3b453f998f
Reference in New Issue
Block a user