-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kustomize for deploying the website container.
- Loading branch information
1 parent
1bfebf4
commit 3ff0f3a
Showing
9 changed files
with
108 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.PHONY: pre-prod | ||
pre-prod: | ||
kubectl kustomize k8s-manifests/overlays/pre-prod/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: playtechnique-website | ||
labels: | ||
app: playtechnique-website | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: playtechnique-website | ||
template: | ||
metadata: | ||
labels: | ||
app: playtechnique-website | ||
spec: | ||
containers: | ||
- name: website | ||
image: docker.io/playtechnique/website | ||
ports: | ||
- containerPort: 8080 | ||
name: pt-port | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: pt-website-ingress | ||
annotations: | ||
nginx.ingress.kubernetes.io/rewrite-target: / | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: pt-service | ||
port: | ||
number: 8080 | ||
tls: | ||
- hosts: | ||
- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resources: | ||
- ingress.yaml | ||
- deployment.yaml | ||
- service.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: pt-service | ||
spec: | ||
selector: | ||
app: playtechnique-website | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
targetPort: pt-port | ||
|
12 changes: 12 additions & 0 deletions
12
website-deployment/k8s-manifests/overlays/pre-prod/deployment-container-version-patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: playtechnique-website | ||
|
||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: website | ||
image: docker.io/playtechnique/website:1 | ||
|
19 changes: 19 additions & 0 deletions
19
website-deployment/k8s-manifests/overlays/pre-prod/ingress-patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: pt-website-ingress | ||
spec: | ||
rules: | ||
- host: preprod.playtechnique.io | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: pt-service | ||
port: | ||
number: 8080 | ||
tls: | ||
- hosts: | ||
- preprod.playtechnique.io |
7 changes: 7 additions & 0 deletions
7
website-deployment/k8s-manifests/overlays/pre-prod/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace: pt-website-pre-prod | ||
resources: | ||
- ../../base | ||
- namespace.yaml | ||
patchesStrategicMerge: | ||
- ingress-patch.yaml | ||
- deployment-container-version-patch.yaml |
4 changes: 4 additions & 0 deletions
4
website-deployment/k8s-manifests/overlays/pre-prod/namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: pt-website-pre-prod |