Update the powerfulseal.yaml kubernetes example
apiVersion: v1
kind: ConfigMap
metadata:
- name: policy
- namespace: default
+ name: sealpolicy
data:
- policy_kill_random_default.yml: |-
- config:
- minSecondsBetweenRuns: 1
- maxSecondsBetweenRuns: 10
- nodeScenarios: []
- podScenarios:
- - name: "delete random pods in default namespace"
- match:
+ policy.yml: |-
+ scenarios:
+ - name: "delete a random pod in default namespace"
+ steps:
+ - matches:
- labels:
namespace: "default"
selector: "app=hello"
@@ -38,20 +34,15 @@ spec:
serviceAccountName: powerfulseal
containers:
- name: powerfulseal
- image: store/bloomberg/powerfulseal:2.8.0
+ image: store/bloomberg/powerfulseal:3.0.0
args:
- autonomous
- - --inventory-kubernetes
- - --no-cloud
- - --policy-file=/root/policy_kill_random_default.yml
- - --use-pod-delete-instead-of-ssh-kill
+ - --policy-file=/policy_kill_random_default.yml
volumeMounts:
- name: policyfile
- mountPath: /root/policy_kill_random_default.yml
- subPath: policy_kill_random_default.yml
+ mountPath: /policy.yml
+ subPath: policy.yml
volumes:
- name: policyfile
configMap:
- name: policy
-
-
+ name: sealpolicy
