The great reset, we moved infra into two clusters (sekibanki et seija)
This commit is contained in:
41
apps/stump/deployment.yaml
Normal file
41
apps/stump/deployment.yaml
Normal file
@@ -0,0 +1,41 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: stump
|
||||
labels:
|
||||
app.kubernetes.io/name: stump
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: stump
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: stump
|
||||
spec:
|
||||
volumes:
|
||||
- name: stump-config
|
||||
persistentVolumeClaim:
|
||||
claimName: stump-config-pvc
|
||||
- name: stump-data
|
||||
persistentVolumeClaim:
|
||||
claimName: stump-data-pvc
|
||||
containers:
|
||||
- name: stump
|
||||
image: aaronleopold/stump:latest
|
||||
ports:
|
||||
- containerPort: 10801
|
||||
name: http
|
||||
volumeMounts:
|
||||
- name: stump-config
|
||||
mountPath: "/config"
|
||||
- name: stump-data
|
||||
mountPath: "/data"
|
||||
env:
|
||||
- name: PUID
|
||||
value: '1000'
|
||||
- name: PGID
|
||||
value: '1000'
|
||||
- name: STUMP_PORT
|
||||
value: "10801"
|
4
apps/stump/kustomization.yaml
Normal file
4
apps/stump/kustomization.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- pvc.yaml
|
||||
- svc.yaml
|
55
apps/stump/pvc.yaml
Normal file
55
apps/stump/pvc.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: stump-config-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: gouyoku-s3fs
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: stump-data-pv
|
||||
spec:
|
||||
storageClassName: s3yuyuko
|
||||
capacity:
|
||||
storage: 500G
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
claimRef:
|
||||
namespace: default
|
||||
name: stump-data-pvc
|
||||
csi:
|
||||
driver: ru.yandex.s3.csi
|
||||
controllerPublishSecretRef:
|
||||
name: csi-yuyuko-secret
|
||||
namespace: kube-system
|
||||
nodePublishSecretRef:
|
||||
name: csi-yuyuko-secret
|
||||
namespace: kube-system
|
||||
nodeStageSecretRef:
|
||||
name: csi-yuyuko-secret
|
||||
namespace: kube-system
|
||||
volumeAttributes:
|
||||
capacity: 500G
|
||||
mounter: s3fs-fuse
|
||||
options: --memory-limit 1000 --dir-mode 0777 --file-mode 0666 -o allow_other --uid 1000 --gid 1000
|
||||
volumeHandle: books
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: stump-data-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: s3yuyuko
|
||||
resources:
|
||||
requests:
|
||||
storage: 500G
|
||||
volumeMode: Filesystem
|
||||
volumeName: stump-data-pv
|
13
apps/stump/svc.yaml
Normal file
13
apps/stump/svc.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: stump
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app.kubernetes.io/name: stump
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: http
|
||||
name: http
|
Reference in New Issue
Block a user