github.com/spotahome/redis-operator@v1.2.4/example/redisfailover/sidecars.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: Namespace
     4  metadata:
     5    name: sc
     6  ---
     7  apiVersion: v1
     8  kind: Secret
     9  metadata:
    10    name: redis-auth
    11    namespace: sc
    12  type: Opaque
    13  stringData:
    14    password: pass
    15  ---
    16  apiVersion: databases.spotahome.com/v1
    17  kind: RedisFailover
    18  metadata:
    19    name: sidecars
    20    namespace: sc
    21  spec:
    22    auth:
    23      secretPath: redis-auth
    24    sentinel:
    25      initContainers:
    26      - name: echo
    27        image: busybox
    28        command:
    29        - "/bin/sh"
    30        - "-c"
    31        - "echo 'init container sentinel'"
    32      replicas: 3
    33      extraContainers:
    34      - name: busybox
    35        image: busybox
    36        command:
    37        - "/bin/sh"
    38        - "-c"
    39        - "sleep infinity"
    40    redis:
    41      replicas: 3
    42      initContainers:
    43      - name: echo
    44        image: busybox
    45        command:
    46        - "/bin/sh"
    47        - "-c"
    48        - "echo 'init container redis'"
    49      extraContainers:
    50      - name: busybox
    51        image: busybox
    52        command:
    53        - "/bin/sh"
    54        - "-c"
    55        - "sleep infinity"