Skip to content
Snippets Groups Projects

Add staging k8s config definition

Merged Martin Lowe requested to merge malowe/eclipsefdn-cve-api:malowe/main/10 into main
1 unresolved thread
1 file
+ 69
0
Compare changes
  • Side-by-side
  • Inline
+ 69
0
apiVersion: apps/v1
kind: Deployment
metadata:
name: eclipsefdn-cve-api-staging
namespace: foundation-internal-webdev-apps
labels:
app: eclipsefdn-cve-api
environment: staging
spec:
selector:
matchLabels:
app: eclipsefdn-cve-api
environment: staging
replicas: 1
template:
metadata:
labels:
app: eclipsefdn-cve-api
environment: staging
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: speed
operator: NotIn
values:
- fast
weight: 1
containers:
- name: app
image: eclipsefdn/eclipsefdn-cve-api:latest
imagePullPolicy: Always
ports:
- containerPort: 8090
resources:
limits:
cpu: 200m
memory: 256Mi
requests:
cpu: 200m
memory: 256Mi
env:
- name: CONFIG_SECRET_PATH
value: "/run/secrets/eclipsefdn-cve-api/secret.properties"
volumeMounts:
- name: secret-properties
mountPath: "/run/secrets/eclipsefdn-cve-api"
readOnly: true
volumes:
- name: secret-properties
secret:
secretName: eclipsefdn-cve-api
---
apiVersion: "v1"
kind: "Service"
metadata:
name: eclipsefdn-cve-api-staging
namespace: foundation-internal-webdev-apps
spec:
ports:
- name: "http"
port: 80
protocol: "TCP"
targetPort: 8090
selector:
app: eclipsefdn-cve-api
environment: staging
Loading