Ajouter deployment.yaml
This commit is contained in:
54
deployment.yaml
Normal file
54
deployment.yaml
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: sinusbot
|
||||||
|
labels:
|
||||||
|
app: sinusbot
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: sinusbot
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: sinusbot
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: sinusbot
|
||||||
|
image: ghcr.io/gamer92000/sinusbot-docker:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8087
|
||||||
|
env:
|
||||||
|
- name: UID
|
||||||
|
value: "1000"
|
||||||
|
- name: GID
|
||||||
|
value: "1000"
|
||||||
|
# Optionnel : décommentez pour forcer un mot de passe
|
||||||
|
# - name: OVERRIDE_PASSWORD
|
||||||
|
# value: "VotreMotDePasseSecurise"
|
||||||
|
volumeMounts:
|
||||||
|
- name: sinusbot-data
|
||||||
|
mountPath: /opt/sinusbot/data
|
||||||
|
- name: sinusbot-scripts
|
||||||
|
mountPath: /opt/sinusbot/scripts
|
||||||
|
volumes:
|
||||||
|
- name: sinusbot-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sinusbot-data-pvc
|
||||||
|
- name: sinusbot-scripts
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: sinusbot-scripts-pvc
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: sinusbot-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: sinusbot
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8087
|
||||||
|
targetPort: 8087
|
||||||
|
type: ClusterIP
|
||||||
Reference in New Issue
Block a user