Skip to content

Commit

Permalink
Kustomize & tagged prod version
Browse files Browse the repository at this point in the history
  • Loading branch information
gmej committed Dec 16, 2024
1 parent 224a39d commit 905d5a3
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: lens-selector-mvp2

spec:
replicas: 1
selector:
Expand All @@ -29,15 +28,16 @@ spec:
spec:
containers:
- name: lens-selector-mvp2
image: gravitate-registry.cr.de-fra.ionos.com/lens-selector-mvp2:dev
image: gravitate-registry.cr.de-fra.ionos.com/lens-selector-mvp2:v0.5.0
imagePullPolicy: Always
env:
- name: ENVIRONMENT
value: "prod"
- name: BASE_URL
value: "http://gravitate-health.lst.tfo.upm.es"
value: "http://fosps.gravitatehealth.eu"
ports:
- containerPort: 3000
protocol: TCP
resources: {}
restartPolicy: Always
status: {}
6 changes: 6 additions & 0 deletions kubernetes/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- 001_lens-selector-mvp2-service.yaml
- 002_lens-selector-mvp2-deployment.yaml
36 changes: 36 additions & 0 deletions kubernetes/dev/002_lens-selector-mvp2-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2022 Universidad Politécnica de Madrid
#
# 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.

apiVersion: apps/v1
kind: Deployment
metadata:
name: lens-selector-mvp2
spec:
replicas: 1
selector:
matchLabels:
app: lens-selector-mvp2
template:
spec:
containers:
- name: lens-selector-mvp2
image: gravitate-registry.cr.de-fra.ionos.com/lens-selector-mvp2:latest
env:
- name: ENVIRONMENT
value: "dev"
- name: BASE_URL
value: "http://gravitate-health.lst.tfo.upm.es"
resources: {}
restartPolicy: Always
status: {}
6 changes: 6 additions & 0 deletions kubernetes/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base
patches:
- path: 002_lens-selector-mvp2-deployment.yaml

0 comments on commit 905d5a3

Please sign in to comment.