github.com/GoogleContainerTools/skaffold@v1.39.18/examples/ruby/k8s/deployment.yaml (about)

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