github.com/GoogleContainerTools/skaffold@v1.39.18/examples/microservices/leeroy-app/kubernetes/deployment.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: leeroy-app
     5    labels:
     6      app: leeroy-app
     7  spec:
     8    clusterIP: None
     9    ports:
    10      - port: 50051
    11        name: leeroy-app
    12    selector:
    13      app: leeroy-app
    14  ---
    15  apiVersion: apps/v1
    16  kind: Deployment
    17  metadata:
    18    name: leeroy-app
    19    labels:
    20      app: leeroy-app
    21  spec:
    22    replicas: 1
    23    selector:
    24      matchLabels:
    25        app: leeroy-app
    26    template:
    27      metadata:
    28        labels:
    29          app: leeroy-app
    30      spec:
    31        containers:
    32        - name: leeroy-app
    33          image: leeroy-app
    34          ports:
    35          - containerPort: 50051
    36            name: http