-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* get_node_cpu_count get_node_cpu_count * test_fix * hog deployment + tests * lowered threshold * test_fix * test fix * sleep * removed removal test not reliable * added list_schedulable_nodes + tests * added get_node_resources infos * deploy_hog refactoring * removed mandatory selector * added optional worker in model * removed useless log * changed node selector type from dict to str * changed node selector input * changed deploy_hog tests * changed regex match regex fix regex fix regex fix match fix * number of nodes option number of nodes * linting
- Loading branch information
1 parent
a07496b
commit 045db43
Showing
8 changed files
with
503 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{ name }} | ||
namespace: {{ namespace }} | ||
spec: | ||
{% if has_selector == true %} | ||
nodeSelector: | ||
{{ node_selector_key }}: {{ node_selector_value }} | ||
{% endif %} | ||
{% if hog_type == hog_type_io %} | ||
{{ io_volume_mount | safe | indent(4)}} | ||
{% endif %} | ||
restartPolicy: Never | ||
imagePullPolicy: IfNotPresent | ||
containers: | ||
- name: krkn-hog | ||
image: {{ image }} | ||
securityContext: | ||
privileged: true | ||
{% if hog_type == hog_type_io %} | ||
volumeMounts: | ||
- name: node-volume | ||
mountPath: {{ target_pod_folder }} | ||
{% endif %} | ||
env: | ||
- name: HOG_TYPE | ||
value: '{{ hog_type }}' | ||
- name: LOAD_PERCENTAGE | ||
value: '{{ cpu_load_percentage }}' | ||
- name: CPU_METHOD | ||
value: '{{ cpu_method }}' | ||
- name: HDD_WRITE_SIZE | ||
value: '{{ io_block_size }}' | ||
- name: HDD_BYTES | ||
value: '{{ io_write_bytes }}' | ||
- name: STRESS_PATH | ||
value: '{{ target_pod_folder }}' | ||
- name: VM_BYTES | ||
value: '{{ memory_vm_bytes }}' | ||
- name: WORKERS | ||
value: '{{ workers }}' | ||
- name: DURATION | ||
value: '{{ duration }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.