Format sock shop index.ts
MODIFY
kubernetes-ts-sock-shop/index.ts
kubernetes-ts-sock-shop/index.ts
@@ -26,9 +26,11 @@ const cartsDb = new k8s.apps.v1.Deployment("carts-db", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "carts-db",
- }},
+ },
+ },
template: {
metadata: {
labels: {
@@ -106,9 +108,11 @@ const carts = new k8s.apps.v1.Deployment("carts", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "carts",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -202,9 +206,11 @@ const catalogDb = new k8s.apps.v1.Deployment("catalog-db", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "catalogue-db",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -271,9 +277,11 @@ const catalog = new k8s.apps.v1.Deployment("catalog", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "catalogue",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -339,9 +347,11 @@ const frontend = new k8s.apps.v1.Deployment("front-end", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "front-end",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -417,9 +427,11 @@ const ordersDb = new k8s.apps.v1.Deployment("orders-db", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "orders-db",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -497,9 +509,11 @@ const orders = new k8s.apps.v1.Deployment("orders", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "orders",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -593,9 +607,11 @@ const payment = new k8s.apps.v1.Deployment("payment", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "payment",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -664,9 +680,11 @@ const queueMaster = new k8s.apps.v1.Deployment("queue-master", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "queue-master",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -725,9 +743,11 @@ const rabbitmq = new k8s.apps.v1.Deployment("rabbitmq", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "rabbitmq",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -794,9 +814,11 @@ const shipping = new k8s.apps.v1.Deployment("shipping", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "shipping",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -890,9 +912,11 @@ const userDb = new k8s.apps.v1.Deployment("user-db", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "user-db",
- }},
+ }
+ },
template: {
metadata: {
labels: {
@@ -970,9 +994,11 @@ const user = new k8s.apps.v1.Deployment("user", {
},
spec: {
replicas: 1,
- selector: {matchLabels: {
+ selector: {
+ matchLabels: {
name: "user",
- }},
+ }
+ },
template: {
metadata: {
labels: {

Format sock shop index.ts