github.com/GoogleContainerTools/skaffold@v1.39.18/examples/buildpacks-python/k8s/web.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: web
     5  spec:
     6    ports:
     7    - port: 8080
     8      name: http
     9    type: LoadBalancer
    10    selector:
    11      app: web
    12  ---
    13  apiVersion: apps/v1
    14  kind: Deployment
    15  metadata:
    16    name: web
    17  spec:
    18    selector:
    19      matchLabels:
    20        app: web
    21    template:
    22      metadata:
    23        labels:
    24          app: web
    25      spec:
    26        containers:
    27        - name: web
    28          image: skaffold-buildpacks
    29          env:
    30            - name: PORT
    31              value: "8080"
    32          ports:
    33            - containerPort: 8080