Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Cantaloupe on Docker
Commits
265b7929
Verified
Commit
265b7929
authored
Jun 04, 2020
by
Sebastian Schüpbach
Browse files
add experimental k8s manifests
parent
fa09a283
Pipeline
#9735
passed with stage
in 9 minutes and 59 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
k8s-manifests/imageserver-deployment.yml
0 → 100644
View file @
265b7929
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
k8s-manifests/imageserver-ingress.yml
0 → 100644
View file @
265b7929
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
k8s-manifests/imageserver-service.yml
0 → 100644
View file @
265b7929
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
k8s-manifests/imageserver-volume-claim.yml
0 → 100644
View file @
265b7929
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
k8s-manifests/redis-deployment.yml
0 → 100644
View file @
265b7929
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
k8s-manifests/redis-service.yml
0 → 100644
View file @
265b7929
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment