Skip to content
Snippets Groups Projects
Commit 6db47b69 authored by Kunz, Immanuel's avatar Kunz, Immanuel
Browse files

add header, remove CICD information

parent 8f5bc7bc
No related branches found
No related tags found
No related merge requests found
// Copyright 2019-2022 Fraunhofer AISEC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $$\ $$\ $$$$$$$$\ $$$$$$$\ $$$$$$\ $$\ $$\ $$$$$$\
// $$$\ $$$ |$$ _____|$$ __$$\ \_$$ _|$$$\ $$ |$$ __$$\
// $$$$\ $$$$ |$$ | $$ | $$ | $$ | $$$$\ $$ |$$ / $$ |
// $$\$$\$$ $$ |$$$$$\ $$ | $$ | $$ | $$ $$\$$ |$$$$$$$$ |
// $$ \$$$ $$ |$$ __| $$ | $$ | $$ | $$ \$$$$ |$$ __$$ |
// $$ |\$ /$$ |$$ | $$ | $$ | $$ | $$ |\$$$ |$$ | $$ |
// $$ | \_/ $$ |$$$$$$$$\ $$$$$$$ |$$$$$$\ $$ | \$$ |$$ | $$ |
// \__| \__|\________|\_______/ \______|\__| \__|\__| \__|
//
// This file is part of the MEDINA Framework.
package main
import (
......
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: cloud-evidence-collector
name: cloud-evidence-collector
spec:
replicas: 1
selector:
matchLabels:
app: cloud-evidence-collector
template:
metadata:
labels:
app: cloud-evidence-collector
spec:
containers:
- image:
imagePullPolicy: Always
name: cloud-evidence-collector
ports:
- containerPort: 8081
- containerPort: 9091
env:
- name: ASSESSMENT_URL
value: "security-assessment-grpc-svc:9092"
- name: AUTH_JWKS_URL
value:
- name: OAUTH2_CLIENT_ID
value:
- name: OAUTH2_CLIENT_SECRET
value:
- name: OAUTH2_TOKEN_URL
value:
- name: TIME
value: {{time}}
- name: AZURE_CLIENT_ID
valueFrom:
secretKeyRef:
name: cloud-evidence-collector-secrets
key: AZURE_CLIENT_ID
- name: AZURE_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: cloud-evidence-collector-secrets
key: AZURE_CLIENT_SECRET
- name: AZURE_TENANT_ID
valueFrom:
secretKeyRef:
name: cloud-evidence-collector-secrets
key: AZURE_TENANT_ID
- name: SUBSCRIPTION_ID
valueFrom:
secretKeyRef:
name: cloud-evidence-collector-secrets
key: SUBSCRIPTION_ID
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: cloud-evidence-collector-svc
spec:
ports:
- port: 8081
protocol: TCP
targetPort: 8081
name: rest
- port: 9091
targetPort: 9091
name: grpc
selector:
app: cloud-evidence-collector
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cloud-evidence-collector
annotations:
cert-manager.io/issuer: "letsencrypt-production"
cert-manager.io/renew-before: 168h
acme.cert-manager.io/http01-edit-in-place: "true"
spec:
ingressClassName: nginx
tls:
- hosts:
- cloud-evidence-collector-dev.k8s.medina.org
secretName: cloud-evidence-collector-tls
rules:
- host: cloud-evidence-collector-dev.k8s.medina.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cloud-evidence-collector
port:
number: 8081
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