Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions quickstart/automated-operations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,9 @@ keptn add-resource --project=$PROJECT --stage=production --service=$SERVICE --re
echo "Adding Remediation Configuration"
keptn add-resource --project=$PROJECT --stage=production --service=$SERVICE --resource=./demo/remediation.yaml --resourceUri=remediation.yaml

jes_is_installed=$(kubectl -n keptn get deployment job-executor-service --ignore-not-found)
if [[ $jes_is_installed == "" ]]; then
print_headline "Deploy Job Executor"
kubectl apply -f ./demo/job/job-executor.yaml
else
print_headline "Job Executor Already Deployed. Skipping Deployment. Will Add Config."
fi
print_headline "Deploy Job Executor"

kubectl apply -f ./demo/job/job-executor.yaml
keptn add-resource --project=$PROJECT --service=$SERVICE --stage=production --resource=./demo/job/config.yaml --resourceUri=job/config.yaml

wait_for_deployment_in_namespace "job-executor-service" "keptn"
Expand Down
31 changes: 12 additions & 19 deletions quickstart/demo/job/job-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@ metadata:
spec:
selector:
matchLabels:
app.kubernetes.io/name: distributor
app.kubernetes.io/instance: keptn
run: job-executor-service
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/name: distributor
app.kubernetes.io/instance: keptn
app.kubernetes.io/part-of: keptn-keptn
app.kubernetes.io/component: control-plane
app.kubernetes.io/version: develop
run: job-executor-service
app.kubernetes.io/name: job-executor-service
app.kubernetes.io/version: 0.1.4
spec:
containers:
- name: job-executor-service
image: keptncontrib/job-executor-service:0.1.7
image: jbraeuer/job-executor-service:0.1.4.1
ports:
- containerPort: 8080
resources:
Expand All @@ -40,7 +37,7 @@ spec:
- name: JOB_NAMESPACE
value: 'keptn'
- name: INIT_CONTAINER_IMAGE
value: 'keptncontrib/job-executor-service-initcontainer:0.1.7'
value: 'keptnsandbox/job-executor-service-initcontainer:0.1.4'
- name: DEFAULT_RESOURCE_LIMITS_CPU
value: "1"
- name: DEFAULT_RESOURCE_LIMITS_MEMORY
Expand All @@ -52,7 +49,7 @@ spec:
- name: ALWAYS_SEND_FINISHED_EVENT
value: "false"
- name: distributor
image: keptn/distributor:0.13.2
image: keptn/distributor:0.9.2
livenessProbe:
httpGet:
path: /health
Expand All @@ -64,11 +61,11 @@ spec:
- containerPort: 8080
resources:
requests:
memory: "16Mi"
cpu: "25m"
limits:
memory: "32Mi"
cpu: "100m"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "500m"
env:
- name: PUBSUB_URL
value: 'nats://keptn-nats-cluster'
Expand All @@ -81,10 +78,6 @@ spec:
fieldRef:
apiVersion: v1
fieldPath: 'metadata.labels[''app.kubernetes.io/version'']'
- name: LOCATION
valueFrom:
fieldRef:
fieldPath: metadata.labels['app.kubernetes.io/component']
- name: K8S_DEPLOYMENT_NAME
valueFrom:
fieldRef:
Expand Down Expand Up @@ -205,4 +198,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: default
namespace: keptn
namespace: keptn