Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix service ports #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions k8s/auth-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -47,7 +48,6 @@ spec:
key: hostname

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -56,5 +56,5 @@ spec:
selector:
app: auth-service-app
ports:
- port: 80
targetPort: 7777
- port: 7777
targetPort: 7777
6 changes: 3 additions & 3 deletions k8s/cloud-gateway-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -42,7 +43,6 @@ spec:
key: eureka_service_address

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -52,5 +52,5 @@ spec:
selector:
app: cloud-gateway-app
ports:
- port: 80
targetPort: 9090
- port: 9090
targetPort: 9090
7 changes: 3 additions & 4 deletions k8s/config-maps.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -6,19 +7,17 @@ data:
config_url: "config-server-svc"

---

apiVersion: v1
kind: ConfigMap
metadata:
name: eureka-cm
data:
eureka_service_address: "http://eureka-0.eureka:8761/eureka"
eureka_service_address: "http://eureka:8761/eureka"

---

apiVersion: v1
kind: ConfigMap
metadata:
name: mysql-cm
data:
hostname: "mysql-0.mysql"
hostname: "mysql"
4 changes: 2 additions & 2 deletions k8s/config-server-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -41,7 +42,6 @@ spec:
key: eureka_service_address

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -50,5 +50,5 @@ spec:
selector:
app: config-server-app
ports:
- port: 80
- port: 9296
targetPort: 9296
10 changes: 5 additions & 5 deletions k8s/mysql-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
# Persistent Volume
apiVersion: v1
kind: PersistentVolume
Expand All @@ -13,8 +14,8 @@ spec:
# path: "/mnt/data" # - for Unix/Linux
path: "/run/desktop/mnt/host/c/temp/testfiles"
type: DirectoryOrCreate
---

---
# Persistent Volume Claim
apiVersion: v1
kind: PersistentVolumeClaim
Expand All @@ -28,8 +29,8 @@ spec:
accessModes:
- ReadWriteOnce

# StatefulSet - MySql
---
# StatefulSet - MySql
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -67,8 +68,8 @@ spec:
persistentVolumeClaim:
claimName: mysql-pvc

# Headless Service
---
# Headless Service
apiVersion: v1
kind: Service
metadata:
Expand All @@ -80,9 +81,8 @@ spec:
ports:
- port: 3306

# Config
---

# Config
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down
6 changes: 3 additions & 3 deletions k8s/order-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -47,7 +48,6 @@ spec:
key: hostname

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -56,5 +56,5 @@ spec:
selector:
app: order-service-app
ports:
- port: 80
targetPort: 8082
- port: 8082
targetPort: 8082
6 changes: 3 additions & 3 deletions k8s/payment-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -47,7 +48,6 @@ spec:
key: hostname

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -56,5 +56,5 @@ spec:
selector:
app: payment-service-app
ports:
- port: 80
targetPort: 8083
- port: 8083
targetPort: 8083
7 changes: 3 additions & 4 deletions k8s/product-service-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -46,9 +47,7 @@ spec:
name: mysql-cm
key: hostname


---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -57,5 +56,5 @@ spec:
selector:
app: product-service-app
ports:
- port: 80
targetPort: 8081
- port: 8081
targetPort: 8081
4 changes: 2 additions & 2 deletions k8s/redis-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -23,7 +24,6 @@ spec:
- containerPort: 6379

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -33,4 +33,4 @@ spec:
app: redis-app
ports:
- port: 6379
targetPort: 6379
targetPort: 6379
5 changes: 3 additions & 2 deletions k8s/service-registry-statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -45,5 +46,5 @@ spec:
selector:
app: eureka
ports:
- port: 80
targetPort: 8761
- port: 8761
targetPort: 8761
5 changes: 2 additions & 3 deletions k8s/zipkin-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -16,7 +17,6 @@ spec:
image: openzipkin/zipkin

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -29,7 +29,6 @@ spec:
targetPort: 9411

---

apiVersion: v1
kind: Service
metadata:
Expand All @@ -40,4 +39,4 @@ spec:
app: zipkin
ports:
- port: 9411
targetPort: 9411
targetPort: 9411