From 4b7b5289169f5790a9cbdd65edf01cd3f372ee99 Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Sun, 15 Oct 2017 11:21:22 -0700 Subject: support virtlet in container4nfv Change-Id: I913149ecf374a0a8f0d0bbb65aff52854401bbd6 Signed-off-by: Guo Ruijing --- .../kubeadm_virtlet/examples/nginx-app.yaml | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml (limited to 'src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml') diff --git a/src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml b/src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml new file mode 100644 index 0000000..f80881a --- /dev/null +++ b/src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Service +metadata: + name: nginx + labels: + app: nginx +spec: + type: NodePort + ports: + - port: 80 + protocol: TCP + name: http + selector: + app: nginx +--- +apiVersion: v1 +kind: ReplicationController +metadata: + name: nginx +spec: + replicas: 2 + template: + metadata: + labels: + app: nginx + spec: + containers: + - name: nginx + image: nginx + ports: + - containerPort: 80 -- cgit 1.2.3-korg