-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #281 from dnascimento/crd
Custom Resource Definition (CRD) and dynamic reload
- Loading branch information
Showing
19 changed files
with
1,157 additions
and
107 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 |
---|---|---|
|
@@ -105,3 +105,6 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# NPM | ||
node_modules/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
layout: default | ||
title: Kubernetes Custom Resources | ||
nav_order: 2 | ||
description: "" | ||
permalink: /crd | ||
parent: Setup | ||
--- | ||
|
||
## Kubernetes Custom Resource Definition | ||
{: .no_toc } | ||
|
||
## Table of contents | ||
{: .no_toc .text-delta } | ||
|
||
1. TOC | ||
{:toc} | ||
|
||
--- | ||
|
||
`Powerfulseal` can be deployed on Kubernetes cluster to perform random chaos the application services. | ||
It also allows teams to define scenarios in their own namespace using [Kubernetes Custom Resources (CRD)](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/). | ||
Powerfulseal adds all CRD-defined scenarios to the ones defined in the policy configuration file (optional). | ||
*Scenarios are reloaded after the execution of the current run.* | ||
|
||
## Kubernetes Installation | ||
|
||
- Apply the rbac.yml (choose the appropriate namespace) to setup a service account with sufficient privileges | ||
|
||
`kubectl apply -f kubernetes/rbac.yml` | ||
|
||
- Deploy powerfulseal | ||
`kubectl apply -f kubernetes/powerfulseal.yml` | ||
|
||
## CRD Installation | ||
|
||
- Create the Custom Resource Definition | ||
`kubectl apply -f kubernetes/crd.yml` | ||
|
||
## Deploy Example | ||
|
||
An example scenario is provided. This creates a sandbox namespace with 2 nginx replicas and ensures their resilience | ||
`kubectl apply -f kubernetes/sandbox.yml` | ||
`kubectl apply -f kubernetes/sandbox_scenario.yml` |
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.