agnosticd
agnosticd copied to clipboard
Need a way to test Student Workloads - not just Infra Workloads
/ is the PR itself, which offers a student-workload playbook, but miss half the loops (it loops workloads but not users).
2/ naming and design discussion
When developing a student workload, i see how it can be useful to have a config to test it against a running cluster.
So, if you think it is useful and fix this PR by adding the user{1..x}, it can be considered. I would also not create another config directory but put this under configs/ocp-workloads/ocp-student-workload.yaml instead.
Regarding the design and naming of workloads, i think we have a simple but naive implementation. It's helped us achieve a lot, but now we need to improve on that.
For example, we want to implement the capability to select a git tag for each workload versus today "deploy config + workload using the same git tag".
ocp_workloads:
- name: ocp-workload-coolstuff type: infra scm_ref: ocp-workload-coolstuff-prod-1.2
- name: ocp-workload-sampleapp type: student scm_tag_prefix: ocp-workload-sampleapp-prod users: "{{ ... }}"
(only giving this as an example to illustrate)
I would prefer if we move this discussion to a dedicated thread or issue/RFE.
OK, so what do we do about this issue?
The user story got lost here:
As a developer of *-workloads for agnosticd/v I want to be able to easily deploy *-workloads into an existing cluster From my local machine or from the bastion host
How do I test student workloads?
@thoraxe can you look at ocp-workloads config ?
It has been updated.
You can use it as any other config, see the examples in the readme and in examples/
Student workloads are just workloads applied several time with a different value for ocp_username. So you can do:
for user in $(seq 1 10); do
ansible-playbook -e @myworkload-in-dev-shared-cluster.yml -e ocp_username=user$user
done