Verified Commit 265b7929 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

add experimental k8s manifests

parent fa09a283
Pipeline #9735 passed with stage
in 9 minutes and 59 seconds
apiVersion: apps/v1
kind: Deployment
metadata:
name: cantaloupe-deployment
namespace: memobase
labels:
app: imageserver-app
spec:
selector:
matchLabels:
app: imageserver-app
replicas: 1
template:
metadata:
labels:
app: imageserver-app
tier: web
spec:
containers:
- name: cantaloupe-container
image: cr.gitlab.switch.ch/memoriav/memobase-2020/services/cantaloupe-docker:4.1.5-jp2
ports:
- containerPort: 8182
name: http
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: image-volume
mountPath: /home/cantaloupe/images
env:
- name: CACHE_SERVER_DERIVATIVE_ENABLED
value: true
- name: CACHE_SERVER_DERIVATIVE
value: RedisCache
- name: REDISCACHE_HOST
value: redis:6379
restartPoliy: Always
volumes:
- name: image-volume
persistentVolumeClaim:
claimName: imageserver-volume-claim
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
namespace: memobase
name: imageserver-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /
labels:
app: imageserver-app
spec:
tls:
- hosts:
- images.memobase.k8s.unibas.ch
secretName: images.memobase.k8s.unibas.ch-tls
rules:
- host: images.memobase.k8s.unibas.ch
http:
paths:
- path: /
backend:
serviceName: imageserver-service
servicePort: 8182
apiVersion: v1
kind: Service
metadata:
namespace: memobase
name: imageserver-service
labels:
app: imageserver-app
spec:
ports:
- port: 8182
selector:
app: imageserver-app
tier: web
clusterIP: None
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: memobase
name: imageserver-volume-claim
labels:
app: imageserver-app
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi
storageClassName: cephfs
volumeMode: Filesystem
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-deployment
namespace: memobase
labels:
app: redis-app
spec:
selector:
matchLabels:
app: redis-app
replicas: 1
template:
metadata:
labels:
app: redis-app
tier: web
spec:
containers:
- name: redis
image: redis:5-buster
imagePullPolicy: Always
ports:
- containerPort: 6379
name: http
protocol: TCP
restartPolicy: Always
apiVersion: v1
kind: Service
metadata:
namespace: memobase
name: redis
labels:
app: redis-app
spec:
ports:
- port: 6379
selector:
app: redis-app
tier: web
clusterIP: None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment