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
All checks were successful
Build and Push to Private Registry101 / build (push) Successful in 8s
This commit is contained in:
9
build.sh
9
build.sh
@@ -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
2
deploy.dev.sh
Normal 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
7
papi-helm/v.dev.yaml
Normal 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
11
papi-helm/v.prod.yaml
Normal 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
7
papi-helm/v.qa.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
ingress:
|
||||
enabled: true
|
||||
hosts:
|
||||
- host: papi.kube-qa.fairfaxmedia.net
|
||||
paths:
|
||||
- path: /
|
||||
pathType: ImplementationSpecific
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user