github.com/replicatedhq/ship@v0.55.0/integration/unfork/redis-k8s/expected/base/redis-master-statefulset.yaml (about)

     1  ---
     2  # Source: redis/templates/redis-master-statefulset.yaml
     3  apiVersion: apps/v1beta2
     4  kind: StatefulSet
     5  metadata:
     6    name: redis-master
     7    labels:
     8      app: redis
     9      chart: redis-5.0.0
    10      release: "redis"
    11      heritage: "Tiller"
    12  spec:
    13    selector:
    14      matchLabels:
    15        release: "redis"
    16        role: master
    17        app: redis
    18    serviceName: redis-master
    19    template:
    20      metadata:
    21        labels:
    22          release: "redis"
    23          chart: redis-5.0.0
    24          role: master
    25          app: redis
    26        annotations:
    27          checksum/health: a70f637bcac29808c7ba9227b633914ef262bc8a0358bd4e7aeab02ba1ac8ea2
    28          checksum/configmap: 23853843a059c57c5633a34ba022f8145d1401d7b00dc5945ead28cf322e18df
    29          checksum/secret: 03e3983832be9f64ed7155c4bf08a7abb0c53892aee18dc8fe29b2d2d9d4d6d1
    30      spec:
    31        securityContext:
    32          fsGroup: 1001
    33          runAsUser: 1001
    34        serviceAccountName: "default"
    35        containers:
    36        - name: redis
    37          image: "docker.io/bitnami/redis:4.0.11"
    38          imagePullPolicy: "Always"
    39          command:
    40            - /run.sh
    41            
    42          args:
    43          - "--port"
    44          - "$(REDIS_PORT)"
    45          - "--requirepass"
    46          - "$(REDIS_PASSWORD)"
    47          - "--include"
    48          - "/opt/bitnami/redis/etc/redis.conf"
    49          - "--include"
    50          - "/opt/bitnami/redis/etc/master.conf"
    51          env:
    52          - name: REDIS_REPLICATION_MODE
    53            value: master
    54          - name: REDIS_PASSWORD
    55            valueFrom:
    56              secretKeyRef:
    57                name: redis
    58                key: redis-password
    59          - name: REDIS_PORT
    60            value: "6379"
    61          ports:
    62          - name: redis
    63            containerPort: 6379
    64          livenessProbe:
    65            initialDelaySeconds: 5
    66            periodSeconds: 5
    67            timeoutSeconds: 5
    68            successThreshold: 1
    69            failureThreshold: 5
    70            exec:
    71              command:
    72              - sh
    73              - -c
    74              - /health/ping_local.sh
    75          readinessProbe:
    76            initialDelaySeconds: 5
    77            periodSeconds: 5
    78            timeoutSeconds: 1
    79            successThreshold: 1
    80            failureThreshold: 5
    81            exec:
    82              command:
    83              - sh
    84              - -c
    85              - /health/ping_local.sh
    86          resources:
    87            null
    88            
    89          volumeMounts:
    90          - name: health
    91            mountPath: /health
    92          - name: redis-data
    93            mountPath: /data
    94            subPath: 
    95          - name: config
    96            mountPath: /opt/bitnami/redis/etc
    97        initContainers:
    98        - name: volume-permissions
    99          image: "docker.io/bitnami/minideb:latest"
   100          imagePullPolicy: "IfNotPresent"
   101          command: ["/bin/chown", "-R", "1001:1001", "/data"]
   102          securityContext:
   103            runAsUser: 0
   104          volumeMounts:
   105          - name: redis-data
   106            mountPath: /data
   107            subPath: 
   108        volumes:
   109        - name: health
   110          configMap:
   111            name: redis-health
   112            defaultMode: 0755
   113        - name: config
   114          configMap:
   115            name: redis
   116    volumeClaimTemplates:
   117      - metadata:
   118          name: redis-data
   119          labels:
   120            app: "redis"
   121            component: "master"
   122            release: "redis"
   123            heritage: "Tiller"
   124        spec:
   125          accessModes:
   126            - "ReadWriteOnce"
   127          resources:
   128            requests:
   129              storage: "8Gi"
   130    updateStrategy:
   131      type: RollingUpdate