diff --git a/DemoApplication/configmap.yaml b/DemoApplication/configmap.yaml
new file mode 100644
index 0000000..e50de54
--- /dev/null
+++ b/DemoApplication/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: demo-config
+data:
+ index.html: |
+
Hello world
+
diff --git a/DemoApplication/configmap.yaml b/DemoApplication/configmap.yaml
new file mode 100644
index 0000000..e50de54
--- /dev/null
+++ b/DemoApplication/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: demo-config
+data:
+ index.html: |
+ Hello world
+
diff --git a/DemoApplication/deployment.yaml b/DemoApplication/deployment.yaml
new file mode 100644
index 0000000..a3da63a
--- /dev/null
+++ b/DemoApplication/deployment.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: demo-deployment
+ labels:
+ app: demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: demo
+ template:
+ metadata:
+ labels:
+ app: demo
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ resources:
+ limits:
+ memory: 20Mi
+ cpu: ".2"
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: demo-volume
+ mountPath: /usr/share/nginx/html/demo/index.html
+ subPath: index.html
+ volumes:
+ - name: demo-volume
+ configMap:
+ name: demo-config
diff --git a/DemoApplication/configmap.yaml b/DemoApplication/configmap.yaml
new file mode 100644
index 0000000..e50de54
--- /dev/null
+++ b/DemoApplication/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: demo-config
+data:
+ index.html: |
+ Hello world
+
diff --git a/DemoApplication/deployment.yaml b/DemoApplication/deployment.yaml
new file mode 100644
index 0000000..a3da63a
--- /dev/null
+++ b/DemoApplication/deployment.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: demo-deployment
+ labels:
+ app: demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: demo
+ template:
+ metadata:
+ labels:
+ app: demo
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ resources:
+ limits:
+ memory: 20Mi
+ cpu: ".2"
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: demo-volume
+ mountPath: /usr/share/nginx/html/demo/index.html
+ subPath: index.html
+ volumes:
+ - name: demo-volume
+ configMap:
+ name: demo-config
diff --git a/DemoApplication/ingress.yaml b/DemoApplication/ingress.yaml
new file mode 100644
index 0000000..ccd48bb
--- /dev/null
+++ b/DemoApplication/ingress.yaml
@@ -0,0 +1,22 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ kubernetes.io/ingress.class: "nginx"
+ nginx.org/mergeale-ingress-type: "minion"
+ #nignx.ingress.kubernetes.io/rewrite-target: /$2
+ name: demo
+ labels:
+ app: demo
+spec:
+ rules:
+ - host: kubernetes.jerxie.com
+ http:
+ paths:
+ - backend:
+ service:
+ name: demo-service
+ port:
+ number: 80
+ path: /demo
+ pathType: Prefix
diff --git a/DemoApplication/configmap.yaml b/DemoApplication/configmap.yaml
new file mode 100644
index 0000000..e50de54
--- /dev/null
+++ b/DemoApplication/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: demo-config
+data:
+ index.html: |
+ Hello world
+
diff --git a/DemoApplication/deployment.yaml b/DemoApplication/deployment.yaml
new file mode 100644
index 0000000..a3da63a
--- /dev/null
+++ b/DemoApplication/deployment.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: demo-deployment
+ labels:
+ app: demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: demo
+ template:
+ metadata:
+ labels:
+ app: demo
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ resources:
+ limits:
+ memory: 20Mi
+ cpu: ".2"
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: demo-volume
+ mountPath: /usr/share/nginx/html/demo/index.html
+ subPath: index.html
+ volumes:
+ - name: demo-volume
+ configMap:
+ name: demo-config
diff --git a/DemoApplication/ingress.yaml b/DemoApplication/ingress.yaml
new file mode 100644
index 0000000..ccd48bb
--- /dev/null
+++ b/DemoApplication/ingress.yaml
@@ -0,0 +1,22 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ kubernetes.io/ingress.class: "nginx"
+ nginx.org/mergeale-ingress-type: "minion"
+ #nignx.ingress.kubernetes.io/rewrite-target: /$2
+ name: demo
+ labels:
+ app: demo
+spec:
+ rules:
+ - host: kubernetes.jerxie.com
+ http:
+ paths:
+ - backend:
+ service:
+ name: demo-service
+ port:
+ number: 80
+ path: /demo
+ pathType: Prefix
diff --git a/DemoApplication/kustomization.yaml b/DemoApplication/kustomization.yaml
new file mode 100644
index 0000000..ba33e1e
--- /dev/null
+++ b/DemoApplication/kustomization.yaml
@@ -0,0 +1,9 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: test
+resources:
+- ./configmap.yaml
+- ./deployment.yaml
+- ./service.yaml
+- ./ingress.yaml
+
diff --git a/DemoApplication/configmap.yaml b/DemoApplication/configmap.yaml
new file mode 100644
index 0000000..e50de54
--- /dev/null
+++ b/DemoApplication/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: demo-config
+data:
+ index.html: |
+ Hello world
+
diff --git a/DemoApplication/deployment.yaml b/DemoApplication/deployment.yaml
new file mode 100644
index 0000000..a3da63a
--- /dev/null
+++ b/DemoApplication/deployment.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: demo-deployment
+ labels:
+ app: demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: demo
+ template:
+ metadata:
+ labels:
+ app: demo
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ resources:
+ limits:
+ memory: 20Mi
+ cpu: ".2"
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: demo-volume
+ mountPath: /usr/share/nginx/html/demo/index.html
+ subPath: index.html
+ volumes:
+ - name: demo-volume
+ configMap:
+ name: demo-config
diff --git a/DemoApplication/ingress.yaml b/DemoApplication/ingress.yaml
new file mode 100644
index 0000000..ccd48bb
--- /dev/null
+++ b/DemoApplication/ingress.yaml
@@ -0,0 +1,22 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ kubernetes.io/ingress.class: "nginx"
+ nginx.org/mergeale-ingress-type: "minion"
+ #nignx.ingress.kubernetes.io/rewrite-target: /$2
+ name: demo
+ labels:
+ app: demo
+spec:
+ rules:
+ - host: kubernetes.jerxie.com
+ http:
+ paths:
+ - backend:
+ service:
+ name: demo-service
+ port:
+ number: 80
+ path: /demo
+ pathType: Prefix
diff --git a/DemoApplication/kustomization.yaml b/DemoApplication/kustomization.yaml
new file mode 100644
index 0000000..ba33e1e
--- /dev/null
+++ b/DemoApplication/kustomization.yaml
@@ -0,0 +1,9 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: test
+resources:
+- ./configmap.yaml
+- ./deployment.yaml
+- ./service.yaml
+- ./ingress.yaml
+
diff --git a/DemoApplication/service.yaml b/DemoApplication/service.yaml
new file mode 100644
index 0000000..2c7fe01
--- /dev/null
+++ b/DemoApplication/service.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: demo-service
+ labels:
+ app: demo
+spec:
+ ports:
+ - port: 80
+ protocol: TCP
+ selector:
+ app: demo
+ type: ClusterIP
+
diff --git a/DemoApplication/configmap.yaml b/DemoApplication/configmap.yaml
new file mode 100644
index 0000000..e50de54
--- /dev/null
+++ b/DemoApplication/configmap.yaml
@@ -0,0 +1,8 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: demo-config
+data:
+ index.html: |
+ Hello world
+
diff --git a/DemoApplication/deployment.yaml b/DemoApplication/deployment.yaml
new file mode 100644
index 0000000..a3da63a
--- /dev/null
+++ b/DemoApplication/deployment.yaml
@@ -0,0 +1,33 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: demo-deployment
+ labels:
+ app: demo
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: demo
+ template:
+ metadata:
+ labels:
+ app: demo
+ spec:
+ containers:
+ - name: nginx
+ image: nginx:1.14.2
+ resources:
+ limits:
+ memory: 20Mi
+ cpu: ".2"
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: demo-volume
+ mountPath: /usr/share/nginx/html/demo/index.html
+ subPath: index.html
+ volumes:
+ - name: demo-volume
+ configMap:
+ name: demo-config
diff --git a/DemoApplication/ingress.yaml b/DemoApplication/ingress.yaml
new file mode 100644
index 0000000..ccd48bb
--- /dev/null
+++ b/DemoApplication/ingress.yaml
@@ -0,0 +1,22 @@
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ kubernetes.io/ingress.class: "nginx"
+ nginx.org/mergeale-ingress-type: "minion"
+ #nignx.ingress.kubernetes.io/rewrite-target: /$2
+ name: demo
+ labels:
+ app: demo
+spec:
+ rules:
+ - host: kubernetes.jerxie.com
+ http:
+ paths:
+ - backend:
+ service:
+ name: demo-service
+ port:
+ number: 80
+ path: /demo
+ pathType: Prefix
diff --git a/DemoApplication/kustomization.yaml b/DemoApplication/kustomization.yaml
new file mode 100644
index 0000000..ba33e1e
--- /dev/null
+++ b/DemoApplication/kustomization.yaml
@@ -0,0 +1,9 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: test
+resources:
+- ./configmap.yaml
+- ./deployment.yaml
+- ./service.yaml
+- ./ingress.yaml
+
diff --git a/DemoApplication/service.yaml b/DemoApplication/service.yaml
new file mode 100644
index 0000000..2c7fe01
--- /dev/null
+++ b/DemoApplication/service.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: demo-service
+ labels:
+ app: demo
+spec:
+ ports:
+ - port: 80
+ protocol: TCP
+ selector:
+ app: demo
+ type: ClusterIP
+
diff --git a/RoleManagement/user-admin-roles.yaml b/RoleManagement/user-admin-roles.yaml
new file mode 100644
index 0000000..e51ceba
--- /dev/null
+++ b/RoleManagement/user-admin-roles.yaml
@@ -0,0 +1,12 @@
+kind: ClusterRoleBinding
+apiVersion: rbac.authorization.k8s.io/v1
+metadata:
+ name: user-admin-role
+subjects:
+ - kind: User
+ apiGroup: rbac.authorization.k8s.io
+ name: axieyangb@gmail.com
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: ClusterRole
+ name: admin