removed seafile: now it is installed from helm

This commit is contained in:
Andrey Kartashov 2018-07-22 20:30:07 +07:00
parent a428b42912
commit 3816ad763b
2 changed files with 0 additions and 180 deletions

View file

@ -20,12 +20,6 @@ Note: passwords in these files are used only at deployment stage and changed man
* confluence.yaml
* jira.yaml
* gitea.yaml
* seafile.yaml - set of resources for seafile.
Pod consists of 4 containers: ccnet, seaf, seahub and seahubstatic (on nginx image).
One init container is used to install/upgrade.
* SSH service
Used as jump server, as development box (has golang an python, git), as management server for docker and k8s, etc

View file

@ -1,174 +0,0 @@
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: seafile
labels:
type: local
name: seafile
spec:
storageClassName: manual
capacity:
storage: 200Gi
accessModes:
- ReadWriteMany
hostPath:
path: /data/seafile
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: seafile
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Gi
selector:
matchLabels:
name: seafile
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: seafile
labels:
app: seafile
spec:
replicas: 1
selector:
matchLabels:
app: seafile
template:
metadata:
labels:
app: seafile
spec:
volumes:
- name: seafile
persistentVolumeClaim:
claimName: seafile
- name: seahubstatic
hostPath:
path: /data/seafile/seafile-server-latest/seahub/media
type:
- name: seahubavatars
hostPath:
path: /data/seafile/seahub-data/avatars
type:
containers:
- name: ccnet
image: gorilych/seafile:6.3.2
imagePullPolicy: IfNotPresent
command: [ "/bin/entrypoint", "ccnet"]
volumeMounts:
- mountPath: /seafile
name: seafile
- name: seaf
image: gorilych/seafile:6.3.2
imagePullPolicy: IfNotPresent
command: [ "/bin/entrypoint", "seaf"]
ports:
- containerPort: 8082
name: filesever
volumeMounts:
- mountPath: /seafile
name: seafile
- name: seahub
image: gorilych/seafile:6.3.2
imagePullPolicy: IfNotPresent
command: [ "/bin/entrypoint", "seahub"]
ports:
- containerPort: 8000
name: seahub
volumeMounts:
- mountPath: /seafile
name: seafile
- name: seahubstatic
image: nginx:alpine
ports:
- containerPort: 80
name: seahubstatic
volumeMounts:
- mountPath: /usr/share/nginx/html
name: seahubstatic
- mountPath: /usr/share/nginx/html/avatars
name: seahubavatars
initContainers:
- name: init
image: gorilych/seafile:6.3.2
imagePullPolicy: IfNotPresent
command: [ "/bin/entrypoint", "init"]
volumeMounts:
- mountPath: /seafile
name: seafile
env:
# commented to use default value from image
#- name: SEAFILE_VERSION
# value: "6.2.3"
- name: SERVER_NAME
value: gullfaxi
- name: SERVER_HOSTNAME
value: seafile.gorilych.ru
- name: MYSQL_HOST
value: mysql
- name: MYSQL_USER
value: seafile
- name: MYSQL_PASSWORD
value: in9ceeC6ohs3
- name: ADMINEMAIL
value: gorilych@gmail.com
- name: ADMINASSWORD
value: in9ceeC6ohs3
---
kind: Service
apiVersion: v1
metadata:
name: seafile
spec:
selector:
app: seafile
ports:
- name: seahub
protocol: TCP
port: 80
targetPort: seahub
- name: seahubstatic
protocol: TCP
port: 81
targetPort: seahubstatic
- name: fileserver
protocol: TCP
port: 82
targetPort: filesever
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: seafile
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/proxy-body-size: "0"
spec:
tls:
- secretName: san-gorilych-ru-tls
hosts:
- seafile.gorilych.ru
rules:
- host: seafile.gorilych.ru
http:
paths:
- backend:
serviceName: seafile
servicePort: 80
- path: /media
backend:
serviceName: seafile
servicePort: 81
- path: /seafhttp
backend:
serviceName: seafile
servicePort: 82