Skip to content
Snippets Groups Projects
Verified Commit 29183687 authored by Lucas Briese's avatar Lucas Briese
Browse files

chore: +k8s prod deploment

parent 010c4e8a
No related branches found
No related tags found
1 merge request!53Chore/k8s prod deployment
Pipeline #109576 canceled
../prod/service.yaml
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: b-service
spec:
selector:
workload.user.cattle.io/workloadselector: apps.deployment-fraunhofer-b-deployment
ports:
- port: 5000
targetPort: 5000
......@@ -11,3 +11,4 @@ data:
CORS_ORIGIN: "https://sec-kpi.opencode.de"
PROJECT_IDS: 1108, 888, 438, 1189, 820, 788, 400, 1052
SPRING_PROFILES_ACTIVE: prod
TOOL_SERVICE_FULL_URL: http://tool-service:8082/api/toolresults
......@@ -22,9 +22,8 @@ spec:
secret:
secretName: cockroachdb.client.fraunhoferpocprod
containers:
- imagePullPolicy: Always
name: b-container
image: registry.opencode.de/opencode-analyzer/data-provider:latest
- name: b-container
image: registry.opencode.de/opencode-analyzer/data-provider:temp_latest
volumeMounts:
- mountPath: "/cockroach-certs"
name: db-secret-volume
......@@ -65,11 +64,11 @@ spec:
secretKeyRef:
name: backendapisecrets
key: api_key
- name: AUTH_API_KEY
valueFrom:
secretKeyRef:
name: backendapisecrets
key: auth_api_key
- name: AUTH_API_KEY
valueFrom:
secretKeyRef:
name: backendapisecrets
key: auth_api_key
- name: HMAC_KEY
valueFrom:
secretKeyRef:
......@@ -80,5 +79,15 @@ spec:
name: crdbconf
- configMapRef:
name: data-provider-config-map
startupProbe:
exec:
command:
- /kubernetes/scripts/startupProbe.sh
initialDelaySeconds: 10
timeoutSeconds: 5
# service has 240 seconds to boot
periodSeconds: 10
failureThreshold: 24
restartPolicy: Always
replicas: 1
revisionHistoryLimit: 10
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.