Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy a second copy of cb-metar #1161

Merged
merged 2 commits into from
Mar 5, 2024
Merged
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
27 changes: 27 additions & 0 deletions kubernetes/base/cb-metar-capella/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cb-metar-capella
labels:
app.kubernetes.io/name: cb-metar-capella
app.kubernetes.io/part-of: mats
app.kubernetes.io/component: frontend
app: cb-metar-capella
spec:
replicas: 1
selector:
matchLabels:
app: cb-metar-capella
template:
metadata:
labels:
app: cb-metar-capella
spec:
containers:
- name: cb-metar-capella
image: ghcr.io/noaa-gsl/mats/development/cb-metar:development
ports:
- containerPort: 9000
securityContext:
allowPrivilegeEscalation: false

15 changes: 15 additions & 0 deletions kubernetes/base/cb-metar-capella/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: cb-metar-capella
labels:
app: cb-metar-capella
spec:
selector:
app: cb-metar-capella
ports:
- port: 80
targetPort: 9000
protocol: TCP
name: http
type: ClusterIP
3 changes: 3 additions & 0 deletions kubernetes/base/cb-metar/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resources:
- deployment.yaml
- service.yaml
31 changes: 31 additions & 0 deletions kubernetes/overlays/gsl-dev/cb-metar-capella/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cb-metar-capella
spec:
template:
spec:
containers:
- name: cb-metar-capella
resources:
requests:
memory: "1Gi"
cpu: "0.25"
limits:
memory: "8Gi"
cpu: "4"
envFrom:
- secretRef:
name: cb-metar-capella-secret
volumeMounts:
- name: cb-metar-capella-settings-file
mountPath: /usr/app/settings/cb-metar/settings.json
subPath: settings.json
readOnly: true
imagePullPolicy: Always # Since we track a long-lived tag
imagePullSecrets:
- name: mats-ghcr
volumes:
- name: cb-metar-capella-settings-file
configMap:
name: cb-metar-capella-config
19 changes: 19 additions & 0 deletions kubernetes/overlays/gsl-dev/cb-metar-capella/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resources:
- ../../../base/cb-metar-capella

patchesStrategicMerge:
- deployment.yaml

images:
- name: ghcr.io/noaa-gsl/mats/development/cb-metar
newTag: development

configMapGenerator:
- name: cb-metar-capella-config
files:
- settings.json # Should mirror the appropriate settings.json file in mats-settings

secretGenerator:
- name: cb-metar-capella-secret
envs:
- .env # Should contain mongo_url, root_url, and delay
7 changes: 7 additions & 0 deletions kubernetes/overlays/gsl-dev/ingress-apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ spec:
name: cb-metar
port:
number: 80
- path: /mats-dev/cb-metar-capella
pathType: Prefix
backend:
service:
name: cb-metar-capella
port:
number: 80
- path: /mats-dev/ceil-vis
pathType: Prefix
backend:
Expand Down
1 change: 1 addition & 0 deletions kubernetes/overlays/gsl-dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resources:
- cb-metar
- cb-metar-capella
- ceil-vis
- ceil-vis15
- ensemble
Expand Down
Loading