...

Text file src/cuelang.org/go/doc/tutorial/kubernetes/original/services/frontend/host/kube.yaml

Documentation: cuelang.org/go/doc/tutorial/kubernetes/original/services/frontend/host

     1apiVersion: v1
     2kind: Service
     3metadata:
     4  name: host
     5  labels:
     6    app: host
     7    domain: prod
     8    component: frontend
     9spec:
    10  ports:
    11  - port: 7080
    12    protocol: TCP
    13    targetPort: 7080
    14    name: client
    15  selector:
    16    app: host
    17    domain: prod
    18    component: frontend
    19---
    20apiVersion: apps/v1
    21kind: Deployment
    22metadata:
    23  name: host
    24spec:
    25  replicas: 2
    26  template:
    27    metadata:
    28      annotations:
    29        prometheus.io.scrape: "true"
    30      labels:
    31        app: host
    32        domain: prod
    33        component: frontend
    34    spec:
    35      containers:
    36      - image: gcr.io/myproj/host:v0.1.10
    37        ports:
    38        - containerPort: 7080
    39        name: host
    40        args: [
    41        ]

View as plain text