feat: add nextjs template

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-04-05 21:42:09 +02:00
parent d6bbb91031
commit e19a57bbb7
33 changed files with 3261 additions and 2433 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: "infrastructure-example"
spec:
selector:
matchLabels:
app: "infrastructure-example"
template:
spec:
containers:
- name: "infrastructure-example"
image: "deployment:latest"
ports:
- containerPort: 3000
name: external_http
- containerPort: 3001
name: internal_http
- containerPort: 3002
name: internal_grpc

View File

@@ -0,0 +1,24 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml
commonLabels:
app: "infrastructure-example"
cluster: "clank-prod"
namespace: "prod"
replicas:
- name: "infrastructure-example"
count: 3
images:
- name: "deployment"
newName: "infrastructure-example"
newTag: "something"

View File

@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: "infrastructure-example"
spec:
type: LoadBalancer
ports:
- name: external_http
port: 3000
targetPort: 3000
- name: internal_http
port: 3001
targetPort: 3001
- name: internal_grpc
port: 3002
targetPort: 3002