67 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
	
		
			1.7 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: apps/v1
 | 
						|
kind: Deployment
 | 
						|
metadata:
 | 
						|
  name: whoogle
 | 
						|
  namespace: whoogle
 | 
						|
spec:
 | 
						|
  replicas: 1
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app.kubernetes.io/name: whoogle
 | 
						|
  strategy:
 | 
						|
    rollingUpdate:
 | 
						|
      maxSurge: 25%
 | 
						|
      maxUnavailable: 25%
 | 
						|
    type: RollingUpdate
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app.kubernetes.io/name: whoogle
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
      - env:
 | 
						|
        - name: WHOOGLE_CONFIG_LANGUAGE
 | 
						|
          value: en
 | 
						|
        - name: WHOOGLE_CONFIG_SEARCH_LANGUAGE
 | 
						|
          value: en
 | 
						|
        - name: WHOOGLE_USER_AGENT
 | 
						|
          value: BlackBerry7100/4.0.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
 | 
						|
        - name: WHOOGLE_MOBILE_USER_AGENT
 | 
						|
          value: BlackBerry7100/4.0.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
 | 
						|
        image: benbusby/whoogle-search:0.9.4
 | 
						|
        imagePullPolicy: IfNotPresent
 | 
						|
        livenessProbe:
 | 
						|
          failureThreshold: 3
 | 
						|
          httpGet:
 | 
						|
            path: /
 | 
						|
            port: http
 | 
						|
            scheme: HTTP
 | 
						|
          periodSeconds: 10
 | 
						|
          successThreshold: 1
 | 
						|
          timeoutSeconds: 1
 | 
						|
        name: whoogle
 | 
						|
        ports:
 | 
						|
        - containerPort: 5000
 | 
						|
          name: http
 | 
						|
          protocol: TCP
 | 
						|
        readinessProbe:
 | 
						|
          failureThreshold: 3
 | 
						|
          httpGet:
 | 
						|
            path: /
 | 
						|
            port: http
 | 
						|
            scheme: HTTP
 | 
						|
          periodSeconds: 10
 | 
						|
          successThreshold: 1
 | 
						|
          timeoutSeconds: 1
 | 
						|
        resources: {}
 | 
						|
        securityContext:
 | 
						|
          runAsUser: 0
 | 
						|
        terminationMessagePath: /dev/termination-log
 | 
						|
        terminationMessagePolicy: File
 | 
						|
      dnsPolicy: ClusterFirst
 | 
						|
      restartPolicy: Always
 | 
						|
      schedulerName: default-scheduler
 | 
						|
      securityContext: {}
 | 
						|
      serviceAccount: whoogle
 | 
						|
      serviceAccountName: whoogle
 | 
						|
      terminationGracePeriodSeconds: 30
 |