diff --git a/build.sh b/build.sh deleted file mode 100644 index 8f2d93b..0000000 --- a/build.sh +++ /dev/null @@ -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} \ No newline at end of file diff --git a/deploy.dev.sh b/deploy.dev.sh new file mode 100644 index 0000000..1c4056c --- /dev/null +++ b/deploy.dev.sh @@ -0,0 +1,2 @@ +#!/bin/bash +helm upgrade papi ./papi-helm/ -f ./papi-helm/v.dev.yaml diff --git a/papi-helm/v.dev.yaml b/papi-helm/v.dev.yaml new file mode 100644 index 0000000..bae8507 --- /dev/null +++ b/papi-helm/v.dev.yaml @@ -0,0 +1,7 @@ +ingress: + enabled: true + hosts: + - host: papi.kube-dev.fairfaxmedia.net + paths: + - path: / + pathType: ImplementationSpecific \ No newline at end of file diff --git a/papi-helm/v.prod.yaml b/papi-helm/v.prod.yaml new file mode 100644 index 0000000..e5a0d41 --- /dev/null +++ b/papi-helm/v.prod.yaml @@ -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 \ No newline at end of file diff --git a/papi-helm/v.qa.yaml b/papi-helm/v.qa.yaml new file mode 100644 index 0000000..5c76701 --- /dev/null +++ b/papi-helm/v.qa.yaml @@ -0,0 +1,7 @@ +ingress: + enabled: true + hosts: + - host: papi.kube-qa.fairfaxmedia.net + paths: + - path: / + pathType: ImplementationSpecific \ No newline at end of file diff --git a/papi-helm/values.yaml b/papi-helm/values.yaml index 4213baf..ac886a9 100644 --- a/papi-helm/values.yaml +++ b/papi-helm/values.yaml @@ -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: