diff options
author | 2017-10-15 11:21:22 -0700 | |
---|---|---|
committer | 2017-10-15 11:30:37 -0700 | |
commit | 4b7b5289169f5790a9cbdd65edf01cd3f372ee99 (patch) | |
tree | 0cfbfa6c73fa6425798d864d95505c41ffd1ecbf /src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml | |
parent | d9c7adad6ec6f5496f9b9ea2db07e01ffc8d4899 (diff) |
support virtlet in container4nfv
Change-Id: I913149ecf374a0a8f0d0bbb65aff52854401bbd6
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
Diffstat (limited to 'src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml')
-rw-r--r-- | src/vagrant/kubeadm_virtlet/examples/nginx-app.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
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 |