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

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: python
     5  spec:
     6    ports:
     7    - port: 5000
     8    type: LoadBalancer
     9    selector:
    10      app: python
    11  ---
    12  apiVersion: apps/v1
    13  kind: Deployment
    14  metadata:
    15    name: python
    16  spec:
    17    selector:
    18      matchLabels:
    19        app: python
    20    template:
    21      metadata:
    22        labels:
    23          app: python
    24      spec:
    25        securityContext:
    26          runAsUser: 1000
    27        containers:
    28        - name: python
    29          image: python-reload
    30          ports:
    31          - containerPort: 5000