mirror of https://github.com/msgbyte/tailchat
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			37 lines
		
	
	
		
			608 B
		
	
	
	
		
			YAML
		
	
			
		
		
	
	
			37 lines
		
	
	
		
			608 B
		
	
	
	
		
			YAML
		
	
apiVersion: apps/v1
 | 
						|
kind: StatefulSet
 | 
						|
metadata:
 | 
						|
  name: redis
 | 
						|
  namespace: tailchat
 | 
						|
spec:
 | 
						|
  selector:
 | 
						|
    matchLabels:
 | 
						|
      app: redis
 | 
						|
  serviceName: redis
 | 
						|
  replicas: 1
 | 
						|
  template:
 | 
						|
    metadata:
 | 
						|
      labels:
 | 
						|
        app: redis
 | 
						|
    spec:
 | 
						|
      containers:
 | 
						|
        - name: redis
 | 
						|
          image: redis:alpine
 | 
						|
          imagePullPolicy: IfNotPresent
 | 
						|
          ports:
 | 
						|
            - containerPort: 6379
 | 
						|
---
 | 
						|
apiVersion: v1
 | 
						|
kind: Service
 | 
						|
metadata:
 | 
						|
  name: redis-service
 | 
						|
  namespace: tailchat
 | 
						|
spec:
 | 
						|
  type: ClusterIP
 | 
						|
  selector:
 | 
						|
    app: redis
 | 
						|
  ports:
 | 
						|
    - protocol: TCP
 | 
						|
      port: 6379
 | 
						|
      targetPort: 6379
 |