This is an automated email from the ASF dual-hosted git repository.
kvn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-ingress-controller.git
The following commit(s) were added to refs/heads/master by this push:
new 27f0cfa update the-hard-way.md (#875)
27f0cfa is described below
commit 27f0cfa8879712070736a91b4b67c1ea0cdd4835
Author: cmssczy <[email protected]>
AuthorDate: Wed Feb 23 08:44:42 2022 -0500
update the-hard-way.md (#875)
---
docs/en/latest/practices/the-hard-way.md | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
diff --git a/docs/en/latest/practices/the-hard-way.md
b/docs/en/latest/practices/the-hard-way.md
index cb007ff..ddb538e 100644
--- a/docs/en/latest/practices/the-hard-way.md
+++ b/docs/en/latest/practices/the-hard-way.md
@@ -127,6 +127,10 @@ spec:
volumeMounts:
- name: data
mountPath: /etcd
+ # If you don't have a storage provisioner or don't want to use
persistence volume, you could use an `emptyDir` as follow.
+ # volumes:
+ # - name: data
+ # emptyDir: {}
volumeClaimTemplates:
- metadata:
name: data
@@ -443,11 +447,13 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: apisix-ingress-controller
+ namespace: apisix
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: apisix-clusterrole
+ namespace: apisix
rules:
- apiGroups:
- ""
@@ -589,6 +595,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: apisix-clusterrolebinding
+ namespace: apisix
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -694,7 +701,7 @@ spec:
initContainers:
- name: wait-apisix-admin
image: busybox:1.28
- command: ['sh', '-c', "until nc -z
apisix-service.apisix.svc.cluster.local 9180 ; do echo waiting for
apisix-admin; sleep 2; done;"]
+ command: ['sh', '-c', "until nc -z
apisix-admin.apisix.svc.cluster.local 9180 ; do echo waiting for apisix-admin;
sleep 2; done;"]
containers:
- name: ingress-controller
command:
@@ -730,20 +737,21 @@ After the ingress controller status is converted to
`Running`, we could create a
Here is an example ApisixRoute:
```yaml
-apiVersion: apisix.apache.org/v2beta1
+apiVersion: apisix.apache.org/v2beta3
kind: ApisixRoute
metadata:
name: httpserver-route
+ namespace: demo
spec:
http:
- - name: httpbin
- match:
- hosts:
- - local.httpbin.org
- paths:
- - "/*"
- backend:
- serviceName: httpbin
+ - name: httpbin
+ match:
+ hosts:
+ - local.httpbin.org
+ paths:
+ - /*
+ backends:
+ - serviceName: httpbin
servicePort: 80
```