adding new quay repo

This commit is contained in:
Paige Rubendall
2022-04-22 13:14:32 -04:00
committed by Naga Ravi Chaitanya Elluri
parent dad4039f27
commit c1fb82e245
5 changed files with 16 additions and 15 deletions

View File

@@ -18,12 +18,12 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: Build the Docker images
run: docker build --no-cache -t quay.io/openshift-scale/kraken containers/
run: docker build --no-cache -t quay.io/chaos-kubox/krkn containers/
- name: Push the Docker images
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
run: docker push quay.io/openshift-scale/kraken
run: docker push quay.io/chaos-kubox/krkn
- name: Remove Image
run: docker rmi -f quay.io/openshift-scale/kraken | exit 0
run: docker rmi -f quay.io/chaos-kubox/krkn | exit 0
- name: Build Kraken-hub Image
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: convictional/trigger-workflow-and-wait@v1.5.0

View File

@@ -1,5 +1,5 @@
# Krkn aka Kraken
[![Docker Repository on Quay](https://quay.io/repository/openshift-scale/kraken/status "Docker Repository on Quay")](https://quay.io/repository/openshift-scale/kraken)
[![Docker Repository on Quay](https://quay.io/repository/openshift-scale/kraken/status "Docker Repository on Quay")](https://quay.io/chaos-kubox/krkn)
Chaos and resiliency testing tool for Kubernetes and OpenShift.
Kraken injects deliberate failures into Kubernetes/OpenShift clusters to check if it is resilient to turbulent conditions.

View File

@@ -1,6 +1,6 @@
### Kraken image
Container image gets automatically built by quay.io at [Kraken image](https://quay.io/repository/openshift-scale/kraken).
Container image gets automatically built by quay.io at [Kraken image](https://quay.io/chaos-kubox/krkn).
### Run containerized version
Refer [instructions](https://github.com/cloud-bulldozer/kraken/blob/master/docs/installation.md#run-containerized-version) for information on how to run the containerized version of kraken.

View File

@@ -16,7 +16,7 @@ spec:
- name: kraken
securityContext:
privileged: true
image: quay.io/openshift-scale/kraken
image: quay.io/chaos-kubox/krkn
command: ["/bin/sh", "-c"]
args: ["python3 run_kraken.py -c config/config.yaml"]
volumeMounts:

View File

@@ -8,13 +8,14 @@ Following ways are supported to run Kraken:
**NOTE**: It is recommended to run Kraken external to the cluster ( Standalone or Containerized ) hitting the Kubernetes/OpenShift API as running it internal to the cluster might be disruptive to itself and also might not report back the results if the chaos leads to cluster's API server instability.
**NOTE**: To run Kraken on Power (ppc64le) architecture, build and run a containerized version by following the instructions given [here](https://github.com/openshift-scale/kraken/tree/master/containers/build_own_image-README.md).
**NOTE**: To run Kraken on Power (ppc64le) architecture, build and run a containerized version by following the
instructions given [here](https://github.com/cloud-bulldozer/krkn/blob/master/containers/build_own_image-README.md).
### Git
#### Clone the repository
```
$ git clone https://github.com/openshift-scale/kraken.git
$ git clone https://github.com/openshift-scale/krkn.git
$ cd kraken
```
@@ -35,21 +36,21 @@ $ python3 run_kraken.py --config <config_file_location>
### Run containerized version
Assuming that the latest docker ( 17.05 or greater with multi-build support ) is installed on the host, run:
```
$ docker pull quay.io/openshift-scale/kraken:latest
$ docker run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -d quay.io/openshift-scale/kraken:latest
$ docker run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -v <path_to_scenarios_directory>:/root/kraken/scenarios:Z -d quay.io/openshift-scale/kraken:latest #custom or tweaked scenario configs
$ docker pull quay.io/chaos-kubox/krkn:latest
$ docker run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -d quay.io/chaos-kubox/krkn:latest
$ docker run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -v <path_to_scenarios_directory>:/root/kraken/scenarios:Z -d quay.io/chaos-kubox/krkn:latest #custom or tweaked scenario configs
$ docker logs -f kraken
```
Similarly, podman can be used to achieve the same:
```
$ podman pull quay.io/openshift-scale/kraken
$ podman run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -d quay.io/openshift-scale/kraken:latest
$ podman run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -v <path_to_scenarios_directory>:/root/kraken/scenarios:Z -d quay.io/openshift-scale/kraken:latest #custom or tweaked scenario configs
$ podman pull quay.io/chaos-kubox/krkn
$ podman run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -d quay.io/chaos-kubox/krkn:latest
$ podman run --name=kraken --net=host -v <path_to_kubeconfig>:/root/.kube/config:Z -v <path_to_kraken_config>:/root/kraken/config/config.yaml:Z -v <path_to_scenarios_directory>:/root/kraken/scenarios:Z -d quay.io/chaos-kubox/krkn:latest #custom or tweaked scenario configs
$ podman logs -f kraken
```
If you want to build your own kraken image see [here](https://github.com/openshift-scale/kraken/tree/master/containers/build_own_image-README.md)
If you want to build your own kraken image see [here](https://github.com/cloud-bulldozer/krkn/blob/master/containers/build_own_image-README.md)
### Run Kraken as a Kubernetes deployment