Commit c5ba6fcd authored by Johannes Kiesel's avatar Johannes Kiesel
Browse files

Add demo/service permissions question

parent 6bd0a9fc
......@@ -16,6 +16,8 @@ Category of questions on tasks one wants to accomplish. Not questions on [fixing
### How to do a demo/service?
Learn [how to use Docker](#how-to-use-docker) and see our notes on [web services setup](
Also learn about [permissions](#how-to-do-a-demoservice-permission-setup).
#### How to do a demo/service logger?
We are establishing [JSON Lines]( as the format for our logs. For interoperability of our software, use these field names as appropriate (add your own names if something you log is not covered here):
......@@ -36,6 +38,13 @@ Web services should log both `timestamp` and `user`, at least one of `url`, `mes
- TODO: How to code logging to Elasticsearch
- TODO: How to code logging to CephFS (and then send it to Elasticsearch)
#### How to do a demo/service permission setup?
Pick or create an authentication group `auth/auth-services/<name>` as subgroup of [auth-services]( students in that group will be able to deploy the demo/service
- If you created an new group, create the Kubernetes namespace:
- Add it to the `kubernetes.podpriority.webisservices.extra_namespaces` (as `services-<name>`) and `kubernetes.group_namespaces` (named `services-<name>` with group `auth/auth-services/<name>`) in the [controller.sls](
- Run `salt "" state.apply kubernetes.controller`
- Deploy your demo/service to the Kubernetes namespace `services-<name>` (set `metadata.namespace` in the `.yaml` to `services-<name>` for all entries (deployments, services, and so on))
### How to do a presentation?
This depends a lot on the kind of presentation.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment