summaryrefslogtreecommitdiffstats
path: root/src/arm/kubernetes_basic/examples/nginx-app.yaml
diff options
context:
space:
mode:
authortrevortao <trevor.tao@arm.com>2018-01-25 14:22:12 +0800
committertrevortao <trevor.tao@arm.com>2018-01-25 14:22:12 +0800
commit87e6c1419cab82ce5b0f828c360ac38120103993 (patch)
tree725d12af33406ccd0871b9a6ce790b6acac89f06 /src/arm/kubernetes_basic/examples/nginx-app.yaml
parentabd05b1cb568c7cb9a406752b0f3d0daa0653b34 (diff)
Add Kubernetes deployment scenario for arm server
1. README.rst: installation guide 2. Scenario1: Kubernetes_basic, a basic Kubernetes cluster with 2 nodes and Flannel CNI plugin, including the deployment scripts, and an example use case We may add more Kubernetes scenarios in the future Change-Id: I3a0189533fdf99f0a80fd76c9e6cf96ff4a7e9f0 Signed-off-by: trevortao <trevor.tao@arm.com>
Diffstat (limited to 'src/arm/kubernetes_basic/examples/nginx-app.yaml')
-rw-r--r--src/arm/kubernetes_basic/examples/nginx-app.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/arm/kubernetes_basic/examples/nginx-app.yaml b/src/arm/kubernetes_basic/examples/nginx-app.yaml
new file mode 100644
index 0000000..9b3c54b
--- /dev/null
+++ b/src/arm/kubernetes_basic/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: arm64v8/nginx:stable
+ ports:
+ - containerPort: 80