github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/doc/tutorial/kubernetes/original/services/kitchen/dishwasher/kube.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: dishwasher
     5    labels:
     6      app: dishwasher
     7      domain: prod
     8      component: kitchen
     9  spec:
    10    ports:
    11    - port: 8080
    12      protocol: TCP
    13      targetPort: 8080
    14      name: client
    15    selector:
    16      app: dishwasher
    17      domain: prod
    18      component: kitchen
    19  ---
    20  apiVersion: apps/v1
    21  kind: Deployment
    22  metadata:
    23    name: dishwasher
    24  spec:
    25    replicas: 5
    26    template:
    27      metadata:
    28        annotations:
    29          prometheus.io.scrape: "true"
    30        labels:
    31          app: dishwasher
    32          domain: prod
    33          component: kitchen
    34      spec:
    35        volumes:
    36        - name: dishwasher-disk
    37          gcePersistentDisk:
    38            pdName: dishwasher-disk
    39            fsType: ext4
    40        - name: secret-dishwasher
    41          secret:
    42            secretName: dishwasher-secrets
    43        - name: secret-ssh-key
    44          secret:
    45            secretName: dishwasher-secrets
    46        containers:
    47        - image: gcr.io/myproj/dishwasher:v0.2.13
    48          volumeMounts:
    49          - name:  dishwasher-disk
    50            mountPath: /logs
    51          - mountPath: /sslcerts
    52            name: secret-dishwasher
    53            readOnly: true
    54          - mountPath: /etc/certs
    55            name: secret-ssh-key
    56            readOnly: true
    57          ports:
    58          - containerPort: 8080
    59          args: [
    60            "-env=prod",
    61            "-ssh-tunnel-key=/etc/certs/tunnel-private.pem",
    62            "-logdir=/logs",
    63            "-event-server=events:7788",
    64          ]
    65          name: dishwasher
    66          livenessProbe:
    67            httpGet:
    68              path: /debug/health
    69              port: 8080
    70            initialDelaySeconds: 40
    71            periodSeconds: 3