feat: refactor build and deployment scripts; update service type to ClusterIP and add ingress configurations
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 8s

This commit is contained in:
stephen schuresko
2025-02-16 22:16:14 -05:00
parent d4b5752a1e
commit eca4c72c0a
6 changed files with 28 additions and 20 deletions

View File

@@ -1,9 +0,0 @@
#!/bin/bash
REG=192.168.1.134:5000
NS=papi
IMG=svc1
TAG=dev
DIMG=${REG}/${NS}/${IMG}:${TAG}
docker build -f Dockerfile -t ${DIMG} .
docker push ${DIMG}

2
deploy.dev.sh Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
helm upgrade papi ./papi-helm/ -f ./papi-helm/v.dev.yaml

7
papi-helm/v.dev.yaml Normal file
View File

@@ -0,0 +1,7 @@
ingress:
enabled: true
hosts:
- host: papi.kube-dev.fairfaxmedia.net
paths:
- path: /
pathType: ImplementationSpecific

11
papi-helm/v.prod.yaml Normal file
View File

@@ -0,0 +1,11 @@
ingress:
enabled: true
hosts:
- host: papi.fairfaxmedia.net
paths:
- path: /
pathType: ImplementationSpecific
- host: papi.kube.fairfaxmedia.net
paths:
- path: /
pathType: ImplementationSpecific

7
papi-helm/v.qa.yaml Normal file
View File

@@ -0,0 +1,7 @@
ingress:
enabled: true
hosts:
- host: papi.kube-qa.fairfaxmedia.net
paths:
- path: /
pathType: ImplementationSpecific

View File

@@ -52,7 +52,7 @@ securityContext: {}
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service:
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
type: NodePort
type: ClusterIP
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
port: 8912
@@ -63,16 +63,6 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: papi.fairfaxmedia.net
paths:
- path: /
pathType: ImplementationSpecific
- host: papi.kube-dev.fairfaxmedia.net
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts: