Chore(ec2): Update rbac permission and add managed nodegroup (#425)

Signed-off-by: udit <udit@chaosnative.com>

Co-authored-by: udit <udit@chaosnative.com>
This commit is contained in:
Udit Gaurav
2021-03-15 19:51:21 +05:30
committed by GitHub
parent eedfedcd94
commit 6641a0897d
5 changed files with 12 additions and 7 deletions

View File

@@ -55,9 +55,6 @@ spec:
env: env:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' value: '60'
- name: CHAOS_INTERVAL
value: '10'
## Number of CPU cores to stress ## Number of CPU cores to stress
- name: CPU_CORES - name: CPU_CORES

View File

@@ -57,9 +57,6 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' value: '60'
- name: CHAOS_INTERVAL
value: '10'
## enter the amount of memory in megabytes to be consumed by the application pod ## enter the amount of memory in megabytes to be consumed by the application pod
- name: MEMORY_CONSUMPTION - name: MEMORY_CONSUMPTION
value: '500' value: '500'

View File

@@ -26,4 +26,8 @@ spec:
# provide the region name of the instace # provide the region name of the instace
- name: REGION - name: REGION
value: '' value: ''
# enable it if the target instance is a part of self-managed nodegroup.
- name: MANAGED_NODEGROUP
value: 'disable'

View File

@@ -50,6 +50,10 @@ spec:
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
# enable it if the target instance is a part of self-managed nodegroup.
- name: MANAGED_NODEGROUP
value: 'disable'
- name: EC2_INSTANCE_ID - name: EC2_INSTANCE_ID
value: '' value: ''

View File

@@ -28,6 +28,9 @@ rules:
- apiGroups: ["litmuschaos.io"] - apiGroups: ["litmuschaos.io"]
resources: ["chaosengines","chaosexperiments","chaosresults"] resources: ["chaosengines","chaosexperiments","chaosresults"]
verbs: ["create","list","get","patch","update"] verbs: ["create","list","get","patch","update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["patch","get","list"]
--- ---
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding kind: ClusterRoleBinding