github.com/darmach/terratest@v0.34.8-0.20210517103231-80931f95e3ff/examples/kubernetes-basic-example/nginx-deployment.yml (about)

     1  ---
     2  apiVersion: apps/v1
     3  kind: Deployment
     4  metadata:
     5    name: nginx-deployment
     6  spec:
     7    selector:
     8      matchLabels:
     9        app: nginx
    10    replicas: 1
    11    template:
    12      metadata:
    13        labels:
    14          app: nginx
    15      spec:
    16        containers:
    17        - name: nginx
    18          image: nginx:1.15.7
    19          ports:
    20          - containerPort: 80
    21  ---
    22  kind: Service
    23  apiVersion: v1
    24  metadata:
    25    name: nginx-service
    26  spec:
    27    selector:
    28      app: nginx
    29    ports:
    30    - protocol: TCP
    31      targetPort: 80
    32      port: 80
    33    type: NodePort