- This exercise doesn't rely on previous exercises. You may again choose which ever technologies you want for the implementation.
+ This exercise doesn't rely on previous exercises. You may again choose whichever technologies you want for the implementation.
This exercise is difficult!
- We need a *DummySite* resource that can be used to create a html page from any url.
+ We need a *DummySite* resource that can be used to create an HTML page from any URL.
1. Create a "DummySite" resource that has a string property called "website_url".
- 2. Create a controller that receives a new created "DummySite" object from the API
+ 2. Create a controller that receives a created "DummySite" object from the API
3. Have the controller create all of the resources that are required for the functionality.
- Refer to [https://kubernetes.io/docs/reference/using-api/client-libraries/](https://kubernetes.io/docs/reference/using-api/client-libraries/) for information about client libraries.
+ Refer to and for more information on Kubernetes API, and
+ for information about client libraries.
+
+You may also take inspiration from the material example apps: [js](https://github.com/kubernetes-hy/material-example/tree/master/app10), [go](https://github.com/kubernetes-hy/material-example/tree/master/app10-go). Note that the JavaScript app does not quite utilize the features of [Kubernetes Client](https://github.com/kubernetes-client/javascript), but it calls the REST API directly.
- The API docs are here for the apiGroups and example requests: [https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18)
+Test that creating a DummySite resource with website_url "[https://example.com/](https://example.com/)"
+ creates a copy of the website. With a more complex website your "copy" does not need to be a complete one. Eg. in https://en.wikipedia.org/wiki/Kubernetes the CSS styles can be broken:
- Test that creating a DummySite resource with website_url "[https://example.com/](https://example.com/)" should create a copy of the website.
+
- The controller doesn't have to work perfectly in all circumstances. The following workflow should succeed: 1. apply role, account and binding. 2. apply deployment. 3. apply DummySite
+ The controller doesn't have to work perfectly in all circumstances. The following workflow should succeed:
+ 1. apply role, account and binding.
+ 2. apply deployment.
+ 3. apply DummySite