Skip to content

Commit

Permalink
FEAT
Browse files Browse the repository at this point in the history
EKS Configuration Settings
  • Loading branch information
MJun111 committed Dec 21, 2023
1 parent 32411b0 commit 3eef3ac
Show file tree
Hide file tree
Showing 12 changed files with 198 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
env.yaml
24 changes: 24 additions & 0 deletions api-gateway-service/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-gateway-deployment
namespace: prod
labels:
app: api-gateway-service
spec:
selector:
matchLabels:
app: api-gateway-service
replicas: 1
template:
metadata:
name: api-gateway-pod
labels:
app: api-gateway-service
spec:
containers:
- name: api-gateway-service
image: jtg/api-gateway:latest
ports:
- containerPort: 8000
imagePullPolicy: Always
13 changes: 13 additions & 0 deletions api-gateway-service/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: api-gateway-service
namespace: prod
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 8000
targetPort: 8000
selector:
app: api-gateway-service
24 changes: 24 additions & 0 deletions auction-service/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: auction-deployment
namespace: prod
labels:
app: auction-service
spec:
selector:
matchLabels:
app: auction-service
replicas: 1
template:
metadata:
name: auction-pod
labels:
app: auction-service
spec:
containers:
- name: auction-service
image: jtg/auction-service:latest
ports:
- containerPort: 8080
imagePullPolicy: Always
12 changes: 12 additions & 0 deletions auction-service/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: auction-service
namespace: prod
spec:
ports:
- protocol: TCP
port: 8080
targetPort: 8080
selector:
app: auction-service
22 changes: 22 additions & 0 deletions config-service/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: config-deployment
namespace: prod
spec:
replicas: 1
selector:
matchLabels:
app: config-service
template:
metadata:
name: config-pod
labels:
app: config-service
spec:
containers:
- image: jtg/config:latest
imagePullPolicy: Always
name: config-service
ports:
- containerPort: 8888
12 changes: 12 additions & 0 deletions config-service/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: config-service
namespace: prod
spec:
type: LoadBalancer
ports:
- targetPort: 8888
port: 8888
selector:
app: config-service
24 changes: 24 additions & 0 deletions discovery-service/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: discovery-deployment
namespace: prod
labels:
app: discovery-service
spec:
selector:
matchLabels:
app: discovery-service
replicas: 1
template:
metadata:
name: discovery-pod
labels:
app: discovery-service
spec:
containers:
- name: discovery-service
image: jtg/discovery:latest
ports:
- containerPort: 8761
imagePullPolicy: Always
12 changes: 12 additions & 0 deletions discovery-service/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: discovery-service
namespace: prod
spec:
ports:
- protocol: TCP
port: 8761
targetPort: 8761
selector:
app: discovery-service
25 changes: 25 additions & 0 deletions ingress_alb/config_ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: config-ingress
namespace: prod
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/load-balancer-name: config-load-balaancer
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS":443}]'
alb.ingress.kubernetes.io/certificate-arn: ${CERT_ARN} # ACM certification arn
alb.ingress.kubernetes.io/ssl-redirect: "443"
spec:
rules:
- host: ${CONFIG_PREFIX}.${HOST_DOMAIN} # {prefix}.{domain}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: config-service
port:
number: 8888
25 changes: 25 additions & 0 deletions ingress_alb/gateway_ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gateway-ingress
namespace: prod
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/load-balancer-name: gateway-load-balancer
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS":443}]'
alb.ingress.kubernetes.io/certificate-arn: ${CERT_ARN} # ACM certification arn
alb.ingress.kubernetes.io/ssl-redirect: "443"
spec:
rules:
- host: ${GATEWAY_PREFIX}.${HOST_DOMAIN} # {prefix}.{domain}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: api-gateway-service
port:
number: 8000
4 changes: 4 additions & 0 deletions namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: prod

0 comments on commit 3eef3ac

Please sign in to comment.