This commit is contained in:
parent
189326b30f
commit
9a8399544b
117
geogame.yml
Normal file
117
geogame.yml
Normal file
@ -0,0 +1,117 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: geogame-config
|
||||
labels:
|
||||
app: geogame
|
||||
namespace: geogame
|
||||
data:
|
||||
SECRET_KEY: lofasz
|
||||
DB_PW: lofasz
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: geogame-static-pv-claim
|
||||
labels:
|
||||
app: geogame
|
||||
namespace: geogame
|
||||
spec:
|
||||
storageClassName: longhorn
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: geogame-media-pv-claim
|
||||
labels:
|
||||
app: geogame
|
||||
namespace: geogame
|
||||
spec:
|
||||
storageClassName: longhorn
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: geogame
|
||||
namespace: geogame
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: geogame
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: geogame
|
||||
spec:
|
||||
containers:
|
||||
- name: geogame
|
||||
image: registry.kmlabz.com/tormakris/geogame
|
||||
imagePullPolicy: "Always"
|
||||
volumeMounts:
|
||||
- mountPath: /app/static
|
||||
name: geogame-static-volume
|
||||
- mountPath: /app/media
|
||||
name: geogame-media-volume
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: xwiki-config
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
volumes:
|
||||
- name: geogame-static-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: geogame-static-pv-claim
|
||||
- name: geogame-media-volume
|
||||
persistentVolumeClaim:
|
||||
claimName: geogame-media-pv-claim
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: geogame
|
||||
namespace: geogame
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8080
|
||||
name: http
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: geogame
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: geogame
|
||||
namespace: geogame
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- geogame.kmlabz.com
|
||||
secretName: geogame-cert-secret
|
||||
rules:
|
||||
- host: geogame.kmlabz.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: geogame
|
||||
servicePort: http
|
@ -141,7 +141,7 @@ EMAIL_HOST = '192.168.8.7'
|
||||
EMAIL_HOST_USER = ''
|
||||
EMAIL_HOST_PASSWORD = ''
|
||||
EMAIL_PORT = 25
|
||||
EMAIL_USE_TLS = True
|
||||
EMAIL_USE_TLS = False
|
||||
DEFAULT_FROM_EMAIL = "geogame@kmlabz.com"
|
||||
|
||||
# AUTH
|
||||
|
Loading…
Reference in New Issue
Block a user