-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added workflows for PubSub & CloudSQL
Signed-off-by: Vedant Shrotria <[email protected]>
- Loading branch information
Showing
6 changed files
with
1,154 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,290 @@ | ||
kind: Workflow | ||
apiVersion: argoproj.io/v1alpha1 | ||
metadata: | ||
name: custom-chaos-workflow-1653992630 | ||
namespace: litmus | ||
creationTimestamp: null | ||
labels: | ||
cluster_id: 06c4f162-579c-4908-8515-08eea80762ed | ||
subject: custom-chaos-workflow_litmus | ||
workflow_id: e9f18141-1d07-460d-97b6-4d2add874b5f | ||
workflows.argoproj.io/controller-instanceid: 06c4f162-579c-4908-8515-08eea80762ed | ||
spec: | ||
imagePullSecrets: | ||
- name: regcred | ||
podMetadata: | ||
annotations: | ||
sidecar.istio.io/inject: "false" | ||
templates: | ||
- name: custom-chaos | ||
inputs: {} | ||
outputs: {} | ||
metadata: {} | ||
steps: | ||
- - name: install-chaos-experiments | ||
template: install-chaos-experiments | ||
arguments: {} | ||
- - name: pod-network-latency-0xa | ||
template: pod-network-latency-0xa | ||
arguments: {} | ||
- name: install-chaos-experiments | ||
inputs: | ||
artifacts: | ||
- name: pod-network-latency-0xa | ||
path: /tmp/pod-network-latency-0xa.yaml | ||
raw: | ||
data: > | ||
apiVersion: litmuschaos.io/v1alpha1 | ||
description: | ||
message: | | ||
Injects network latency on pods belonging to an app deployment | ||
kind: ChaosExperiment | ||
metadata: | ||
name: pod-network-latency | ||
labels: | ||
name: pod-network-latency | ||
app.kubernetes.io/part-of: litmus | ||
app.kubernetes.io/component: chaosexperiment | ||
app.kubernetes.io/version: 2.8.0 | ||
spec: | ||
definition: | ||
scope: Namespaced | ||
permissions: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- deletecollection | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- patch | ||
- update | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods/log | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods/exec | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
- statefulsets | ||
- replicasets | ||
- daemonsets | ||
verbs: | ||
- list | ||
- get | ||
- apiGroups: | ||
- apps.openshift.io | ||
resources: | ||
- deploymentconfigs | ||
verbs: | ||
- list | ||
- get | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- replicationcontrollers | ||
verbs: | ||
- get | ||
- list | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- rollouts | ||
verbs: | ||
- list | ||
- get | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- jobs | ||
verbs: | ||
- create | ||
- list | ||
- get | ||
- delete | ||
- deletecollection | ||
- apiGroups: | ||
- litmuschaos.io | ||
resources: | ||
- chaosengines | ||
- chaosexperiments | ||
- chaosresults | ||
verbs: | ||
- create | ||
- list | ||
- get | ||
- patch | ||
- update | ||
- delete | ||
image: artifactory.sdlc.ctl.gcp.db.com/dkr-public-local/dkr-io/chaosnative/go-runner:2.8.0 | ||
imagePullPolicy: Always | ||
args: | ||
- -c | ||
- ./experiments -name pod-network-latency | ||
command: | ||
- /bin/bash | ||
env: | ||
- name: TARGET_CONTAINER | ||
value: "" | ||
- name: NETWORK_INTERFACE | ||
value: eth0 | ||
- name: LIB_IMAGE | ||
value: artifactory.sdlc.ctl.gcp.db.com/dkr-public-local/dkr-io/chaosnative/go-runner:2.8.0 | ||
- name: TC_IMAGE | ||
value: gaiadocker/iproute2 | ||
- name: NETWORK_LATENCY | ||
value: "2000" | ||
- name: TOTAL_CHAOS_DURATION | ||
value: "60" | ||
- name: RAMP_TIME | ||
value: "" | ||
- name: JITTER | ||
value: "0" | ||
- name: LIB | ||
value: litmus | ||
- name: PODS_AFFECTED_PERC | ||
value: "" | ||
- name: TARGET_PODS | ||
value: "" | ||
- name: CONTAINER_RUNTIME | ||
value: docker | ||
- name: DESTINATION_IPS | ||
value: "" | ||
- name: DESTINATION_HOSTS | ||
value: "" | ||
- name: SOCKET_PATH | ||
value: /var/run/docker.sock | ||
- name: NODE_LABEL | ||
value: "" | ||
- name: SEQUENCE | ||
value: parallel | ||
labels: | ||
name: pod-network-latency | ||
app.kubernetes.io/part-of: litmus | ||
app.kubernetes.io/component: experiment-job | ||
app.kubernetes.io/runtime-api-usage: "true" | ||
app.kubernetes.io/version: 2.8.0 | ||
outputs: {} | ||
metadata: {} | ||
container: | ||
name: "" | ||
image: artifactory.sdlc.ctl.gcp.db.com/dkr-public-local/dkr-io/chaosnative/k8s:2.8.0 | ||
command: | ||
- sh | ||
- -c | ||
args: | ||
- kubectl apply -f /tmp/pod-network-latency-0xa.yaml -n | ||
{{workflow.parameters.adminModeNamespace}} | sleep 30 | ||
resources: {} | ||
- name: pod-network-latency-0xa | ||
inputs: | ||
artifacts: | ||
- name: pod-network-latency-0xa | ||
path: /tmp/chaosengine-pod-network-latency-0xa.yaml | ||
raw: | ||
data: | | ||
apiVersion: litmuschaos.io/v1alpha1 | ||
kind: ChaosEngine | ||
metadata: | ||
namespace: "{{workflow.parameters.adminModeNamespace}}" | ||
generateName: pod-network-latency-0xa | ||
labels: | ||
instance_id: 6a88899e-9b71-43d4-9d5f-a93ba0366fe4 | ||
context: pod-network-latency-0xa_litmus | ||
workflow_name: custom-chaos-workflow-1653992630 | ||
spec: | ||
components: | ||
runner: | ||
imagePullSecrets: | ||
- name: regcred | ||
runnerAnnotations: | ||
sidecar.istio.io/inject: "false" | ||
engineState: active | ||
appinfo: | ||
appns: app | ||
applabel: app=native | ||
appkind: deployment | ||
chaosServiceAccount: litmus-admin | ||
experiments: | ||
- name: pod-network-latency | ||
spec: | ||
components: | ||
experimentImagePullSecrets: | ||
- name: regcred | ||
experimentAnnotations: | ||
sidecar.istio.io/inject: "false" | ||
env: | ||
- name: TOTAL_CHAOS_DURATION | ||
value: "60" | ||
- name: NETWORK_LATENCY | ||
value: "2000" | ||
- name: JITTER | ||
value: "0" | ||
- name: CONTAINER_RUNTIME | ||
value: containerd | ||
- name: SOCKET_PATH | ||
value: /run/containerd/containerd.sock | ||
- name: DESTINATION_HOSTS | ||
value: sqladmin.googleapis.com | ||
- name: PODS_AFFECTED_PERC | ||
value: "" | ||
probe: [] | ||
annotationCheck: "false" | ||
outputs: {} | ||
metadata: | ||
labels: | ||
weight: "10" | ||
container: | ||
name: "" | ||
image: artifactory.sdlc.ctl.gcp.db.com/dkr-public-local/dkr-io/chaosnative/litmus-checker:2.8.0 | ||
args: | ||
- -file=/tmp/chaosengine-pod-network-latency-0xa.yaml | ||
- -saveName=/tmp/engine-name | ||
resources: {} | ||
entrypoint: custom-chaos | ||
arguments: | ||
parameters: | ||
- name: adminModeNamespace | ||
value: litmus | ||
serviceAccountName: argo-chaos | ||
securityContext: | ||
runAsUser: 1000 | ||
runAsNonRoot: true | ||
status: | ||
? startedAt | ||
? finishedAt |
Oops, something went wrong.