summaryrefslogtreecommitdiffstats
path: root/src/vagrant/kubeadm_multus/examples/ubuntu.yaml
blob: b01f9036ff1ef752354fc6dbe6f2dabe37d101bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
apiVersion: v1
kind: Service
metadata:
  name: ubuntu
  labels:
    app: ubuntu
spec:
  type: NodePort
  ports:
  - port: 80
    protocol: TCP
    name: http
  selector:
    app: ubuntu
---
apiVersion: v1
kind: ReplicationController
metadata:
  name: ubuntu
spec:
  replicas: 2
  template:
    metadata:
      labels:
        app: ubuntu
    spec:
      containers:
      - name: ubuntu
        image: openretriever/ubuntu1604-ping
        command: [ "/bin/bash", "-c", "sleep 30000" ]
        ports:
        - containerPort: 80