• File: redis.yaml
  • Full Path: /var/www/html/back/k8s/redis.yaml
  • File size: 536 bytes
  • MIME-type: text/plain
  • Charset: utf-8
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis
  namespace: gitep
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
        - name: redis
          image: redis:alpine
          ports:
            - containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
  name: redis
  namespace: gitep
spec:
  selector:
    app: redis
  ports:
    - name: redis-port
      protocol: TCP
      port: 6379
      targetPort: 6379