github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/original/services/kitchen/caller/kube.yaml (about)

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