diff --git a/basic-k8s/go/readme.md b/basic-k8s/go/readme.md index 315fb1b..df7cef1 100644 --- a/basic-k8s/go/readme.md +++ b/basic-k8s/go/readme.md @@ -6,17 +6,20 @@ Make sure you are inside `basic-k8s/go` directory. ### Do it yourself -Apply the crd present in `deploy` folder. +Apply the crd. ```bash kubectl apply -f ../deploy/crd.yaml ``` -Apply the controller for `Ping`. I am deploying it in `metacontroller` namespace. You can deploy it in any namespace. For that, you have to edit `controller.yaml`. +Apply the controller for `Ping`. I am deploying it in `metacontroller` namespace. You can deploy it in any namespace. ```bash kubectl apply -f controller.yaml ``` Wait for controller pod to come in running state. +```bash +kubectl get pod -n metacontroller +``` Create a ping cr. Find the sample `Ping` is [here](https://github.com/shovanmaity/metacontroller-by-example/blob/master/basic-k8s/deploy/ping.yaml). ```bash @@ -30,7 +33,7 @@ spec: EOF ``` -Check `Pong` is created or not and validate the `spec.message`. `Pong` cr will be created in the same namespace in which `Ping` cr is present. +Check the `Pong` cr and validate the message. `Pong` cr will be created in the same namespace in which `Ping` cr is present. ```bash kubectl get pong -A kubectl get pong -A -o=jsonpath='{range .items[*]}{@.spec.message}{"\n"}{end}' diff --git a/basic-k8s/js/readme.md b/basic-k8s/js/readme.md index fff5e91..8de1b66 100644 --- a/basic-k8s/js/readme.md +++ b/basic-k8s/js/readme.md @@ -6,17 +6,20 @@ Make sure you are inside `basic-k8s/js` directory. ### Do it yourself -Apply the crd present in `deploy` folder. +Apply the crd. ```bash kubectl apply -f ../deploy/crd.yaml ``` -Apply the controller for `Ping`. I am deploying it in `metacontroller` namespace. You can deploy it in any namespace. For that, you have to edit `controller.yaml`. +Apply the controller for `Ping`. I am deploying it in `metacontroller` namespace. You can deploy it in any namespace. ```bash kubectl apply -f controller.yaml ``` Wait for controller pod to come in running state. +```bash +kubectl get pod -n metacontroller +``` Create a ping cr. Find the sample `Ping` is [here](https://github.com/shovanmaity/metacontroller-by-example/blob/master/basic-k8s/deploy/ping.yaml). ```bash @@ -30,7 +33,7 @@ spec: EOF ``` -Check `Pong` is created or not and validate the `spec.message`. `Pong` cr will be created in the same namespace in which `Ping` cr is present. +Check the `Pong` cr and validate the message. `Pong` cr will be created in the same namespace in which `Ping` cr is present. ```bash kubectl get pong -A kubectl get pong -A -o=jsonpath='{range .items[*]}{@.spec.message}{"\n"}{end}' diff --git a/basic-k8s/python/readme.md b/basic-k8s/python/readme.md index 92f9252..d9e4a1c 100644 --- a/basic-k8s/python/readme.md +++ b/basic-k8s/python/readme.md @@ -6,17 +6,20 @@ Make sure you are inside `basic-k8s/python` directory. ### Do it yourself -Apply the crd and controller present in `deploy` folder. +Apply the crd and controller. ```bash kubectl apply -f ../deploy/crd.yaml ``` -Apply the controller for `Ping`. I am deploying it in `metacontroller` namespace. You can deploy it in any namespace. For that, you have to edit `controller.yaml`. +Apply the controller for `Ping`. I am deploying it in `metacontroller` namespace. You can deploy it in any namespace. ```bash kubectl apply -f controller.yaml ``` Wait for controller pod to come in running state. +```bash +kubectl get pod -n metacontroller +``` Create a ping cr. Find the sample `Ping` is [here](https://github.com/shovanmaity/metacontroller-by-example/blob/master/basic-k8s/deploy/ping.yaml). ```bash @@ -30,7 +33,7 @@ spec: EOF ``` -Check `Pong` is created or not and validate the `spec.message`. `Pong` cr will be created in the same namespace in which `Ping` cr is present. +Check the `Pong` cr and validate the message. `Pong` cr will be created in the same namespace in which `Ping` cr is present. ```bash kubectl get pong -A kubectl get pong -A -o=jsonpath='{range .items[*]}{@.spec.message}{"\n"}{end}' diff --git a/basic/go/readme.md b/basic/go/readme.md index 025359a..86858cf 100644 --- a/basic/go/readme.md +++ b/basic/go/readme.md @@ -15,7 +15,7 @@ spec: url: http://192.168.1.15:8080/sync ``` -Apply the crd and controller present in `deploy` folder. +Apply the crd and controller. ```bash kubectl apply -f ../deploy/controller.yaml kubectl apply -f ../deploy/crd.yaml @@ -38,7 +38,7 @@ spec: EOF ``` -Check `Pong` is created or not and validate the `spec.message`. `Pong` cr will be created in the same namespace in which `Ping` cr is present. +Check the `Pong` cr and validate the message. `Pong` cr will be created in the same namespace in which `Ping` cr is present. ```bash kubectl get pong -A kubectl get pong -A -o=jsonpath='{range .items[*]}{@.spec.message}{"\n"}{end}' diff --git a/basic/js/readme.md b/basic/js/readme.md index 316ded3..f5cb6f6 100644 --- a/basic/js/readme.md +++ b/basic/js/readme.md @@ -15,7 +15,7 @@ spec: url: http://192.168.1.15:8080/sync ``` -Apply the crd and controller present in `deploy` folder. +Apply the crd and controller. ```bash kubectl apply -f ../deploy/controller.yaml kubectl apply -f ../deploy/crd.yaml @@ -39,7 +39,7 @@ spec: EOF ``` -Check `Pong` is created or not and validate the `spec.message`. `Pong` cr will be created in the same namespace in which `Ping` cr is present. +Check the `Pong` cr and validate the message. `Pong` cr will be created in the same namespace in which `Ping` cr is present. ```bash kubectl get pong -A kubectl get pong -A -o=jsonpath='{range .items[*]}{@.spec.message}{"\n"}{end}' diff --git a/basic/python/readme.md b/basic/python/readme.md index dc3fefe..6224a0c 100644 --- a/basic/python/readme.md +++ b/basic/python/readme.md @@ -15,7 +15,7 @@ spec: url: http://192.168.1.15:8080/sync ``` -Apply the crd and controller present in `deploy` folder. +Apply the crd and controller. ```bash kubectl apply -f ../deploy/controller.yaml kubectl apply -f ../deploy/crd.yaml @@ -38,7 +38,7 @@ spec: EOF ``` -Check `Pong` is created or not and validate the `spec.message`. `Pong` cr will be created in the same namespace in which `Ping` cr is present. +Check the `Pong` cr and validate the message. `Pong` cr will be created in the same namespace in which `Ping` cr is present. ```bash kubectl get pong -A kubectl get pong -A -o=jsonpath='{range .items[*]}{@.spec.message}{"\n"}{end}' diff --git a/composite-controller/generate-selector/readme.md b/composite-controller/generate-selector/readme.md index 9c452fd..4dc4565 100644 --- a/composite-controller/generate-selector/readme.md +++ b/composite-controller/generate-selector/readme.md @@ -13,11 +13,6 @@ Make sure you are inside `composite-controller/generate-selector` directory. ### Do it yourself -Apply the crd. -```bash -kubectl apply -f deploy/crd.yaml -``` - ### Case-1 Edit the `deploy/case-1/controller.yaml` file and update the URL. @@ -34,6 +29,11 @@ Apply the controller. kubectl apply -f deploy/case-1/controller.yaml ``` +Apply the crd. +```bash +kubectl apply -f deploy/crd.yaml +``` + Create a ping cr using - ```bash cat <