mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
* Github Action + functional tests (no *hog tests) * changed the trigger keyword to /test * removed deprecated kill_pod scenario + added namespace to app_outage (new kill_pod) * #365: renamed ingress_namespace scenario to network_diagnostrcs * requested team filter added --------- Co-authored-by: Tullio Sebastiani <tullio.sebastiani@x3solutions.it>
45 lines
745 B
YAML
45 lines
745 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: $NAMESPACE
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: $DEPLOYMENT_NAME-service
|
|
namespace: $NAMESPACE
|
|
spec:
|
|
selector:
|
|
app: $DEPLOYMENT_NAME
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 8080
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: $NAMESPACE
|
|
name: $DEPLOYMENT_NAME-deployment
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
app: $DEPLOYMENT_NAME
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: $DEPLOYMENT_NAME
|
|
spec:
|
|
containers:
|
|
- name: $DEPLOYMENT_NAME
|
|
image: nginxinc/nginx-unprivileged:stable-alpine
|
|
ports:
|
|
- name: http
|
|
containerPort: 8080
|