@@ -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
|
@@ -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"
|
@@ -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
|
||||
|
Reference in New Issue
Block a user