49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
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: config
 | 
						|
          mountPath: /etc/ocis
 | 
						|
        # - name: ocis-config-file
 | 
						|
        #   mountPath: /etc/ocis/config.yaml
 | 
						|
        - name: data
 | 
						|
          mountPath: /var/lib/ocis
 | 
						|
      volumes:
 | 
						|
      # - name: ocis-config
 | 
						|
      #   persistentVolumeClaim:
 | 
						|
      #     claimName: ocis-config
 | 
						|
      - name: config
 | 
						|
        secret:
 | 
						|
          secretName: ocis-config
 | 
						|
      - name: data
 | 
						|
        persistentVolumeClaim:
 | 
						|
          claimName: ocis
 |