steps towards a completely managed cluster
This commit is contained in:
		
							
								
								
									
										48
									
								
								apps/ocis/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								apps/ocis/deployment.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,48 @@ | ||||
| apiVersion: apps/v1 | ||||
| kind: StatefulSet | ||||
| metadata: | ||||
|   name: ocis-statefulset | ||||
| spec: | ||||
|   selector: | ||||
|     matchLabels: | ||||
|       app: ocis | ||||
|   serviceName: ocis-web | ||||
|   replicas: 1 | ||||
|   template: | ||||
|     metadata: | ||||
|       labels: | ||||
|         app: ocis | ||||
|     spec: | ||||
|       containers: | ||||
|       - name: ocis | ||||
|         image: ocis | ||||
|         resources: | ||||
|           limits: | ||||
|             memory: "1Gi" | ||||
|             cpu: "1000m" | ||||
|         env: | ||||
|         - name: OCIS_INSECURE | ||||
|           value: "true" | ||||
|         - name: OCIS_URL | ||||
|           value: "https://ocis.kluster.moll.re" | ||||
|         - name: OCIS_LOG_LEVEL | ||||
|           value: "debug" | ||||
|         ports: | ||||
|         - containerPort: 9200 | ||||
|         volumeMounts: | ||||
|         - name: ocis-config | ||||
|           mountPath: /etc/ocis | ||||
|         # - name: ocis-config-file | ||||
|         #   mountPath: /etc/ocis/config.yaml | ||||
|         - name: ocis-data | ||||
|           mountPath: /var/lib/ocis | ||||
|       volumes: | ||||
|       # - name: ocis-config | ||||
|       #   persistentVolumeClaim: | ||||
|       #     claimName: ocis-config | ||||
|       - name: ocis-config | ||||
|         secret: | ||||
|           secretName: ocis-config | ||||
|       - name: ocis-data | ||||
|         persistentVolumeClaim: | ||||
|           claimName: ocis-data | ||||
							
								
								
									
										18
									
								
								apps/ocis/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								apps/ocis/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| apiVersion: traefik.containo.us/v1alpha1 | ||||
| kind: IngressRoute | ||||
| metadata: | ||||
|   name: ocis-ingressroute | ||||
|  | ||||
| spec: | ||||
|   entryPoints: | ||||
|     - websecure | ||||
|   routes: | ||||
|   - match: Host(`ocis.kluster.moll.re`) | ||||
|     kind: Rule | ||||
|     services: | ||||
|     - name: ocis-web | ||||
|       port: 9200 | ||||
|       scheme: https | ||||
|  | ||||
|   tls: | ||||
|     certResolver: default-tls  | ||||
							
								
								
									
										16
									
								
								apps/ocis/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								apps/ocis/kustomization.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | ||||
| kind: Kustomization | ||||
| resources:  | ||||
|   - namespace.yaml | ||||
|   - ingress.yaml | ||||
|   - service.yaml | ||||
|   - pvc.yaml | ||||
|   - deployment.yaml | ||||
|   - ocis-config.sealedsecret.yaml | ||||
|  | ||||
| namespace: ocis | ||||
|  | ||||
| images: | ||||
|   - name: ocis | ||||
|     newName: owncloud/ocis | ||||
|     newTag: "5.0" | ||||
							
								
								
									
										4
									
								
								apps/ocis/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								apps/ocis/namespace.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| apiVersion: v1 | ||||
| kind: Namespace | ||||
| metadata: | ||||
|   name: placeholder | ||||
							
								
								
									
										17
									
								
								apps/ocis/ocis-config.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/ocis/ocis-config.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										11
									
								
								apps/ocis/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								apps/ocis/pvc.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| kind: PersistentVolumeClaim | ||||
| apiVersion: v1 | ||||
| metadata: | ||||
|   name: ocis-data | ||||
| spec: | ||||
|   storageClassName: nfs-client | ||||
|   accessModes: | ||||
|     - ReadWriteOnce | ||||
|   resources: | ||||
|     requests: | ||||
|       storage: 100Gi | ||||
							
								
								
									
										10
									
								
								apps/ocis/service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								apps/ocis/service.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,10 @@ | ||||
| apiVersion: v1 | ||||
| kind: Service | ||||
| metadata: | ||||
|   name: ocis-web | ||||
| spec: | ||||
|   selector: | ||||
|     app: ocis | ||||
|   ports: | ||||
|   - port: 9200 | ||||
|     targetPort: 9200 | ||||
		Reference in New Issue
	
	Block a user