Skip to content

Commit e29d675

Browse files
authored
Merge pull request #39282 from CooperHanke/patch-1
Updating directions for testing out kompose
2 parents 320c55b + 01632e7 commit e29d675

File tree

1 file changed

+39
-31
lines changed

1 file changed

+39
-31
lines changed

content/en/docs/tasks/configure-pod-container/translate-compose-kubernetes.md

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -129,34 +129,22 @@ you need is an existing `docker-compose.yml` file.
129129
The output is similar to:
130130

131131
```none
132-
INFO Kubernetes file "frontend-service.yaml" created
133-
INFO Kubernetes file "frontend-service.yaml" created
134-
INFO Kubernetes file "frontend-service.yaml" created
135-
INFO Kubernetes file "redis-master-service.yaml" created
136-
INFO Kubernetes file "redis-master-service.yaml" created
137-
INFO Kubernetes file "redis-master-service.yaml" created
138-
INFO Kubernetes file "redis-slave-service.yaml" created
139-
INFO Kubernetes file "redis-slave-service.yaml" created
140-
INFO Kubernetes file "redis-slave-service.yaml" created
141-
INFO Kubernetes file "frontend-deployment.yaml" created
142-
INFO Kubernetes file "frontend-deployment.yaml" created
143-
INFO Kubernetes file "frontend-deployment.yaml" created
144-
INFO Kubernetes file "redis-master-deployment.yaml" created
145-
INFO Kubernetes file "redis-master-deployment.yaml" created
146-
INFO Kubernetes file "redis-master-deployment.yaml" created
147-
INFO Kubernetes file "redis-slave-deployment.yaml" created
148-
INFO Kubernetes file "redis-slave-deployment.yaml" created
132+
INFO Kubernetes file "frontend-tcp-service.yaml" created
133+
INFO Kubernetes file "redis-master-service.yaml" created
134+
INFO Kubernetes file "redis-slave-service.yaml" created
135+
INFO Kubernetes file "frontend-deployment.yaml" created
136+
INFO Kubernetes file "redis-master-deployment.yaml" created
149137
INFO Kubernetes file "redis-slave-deployment.yaml" created
150138
```
151139

152140
```bash
153-
kubectl apply -f frontend-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml
141+
kubectl apply -f frontend-tcp-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml
154142
```
155143

156144
The output is similar to:
157145

158146
```none
159-
service/frontend created
147+
service/frontend-tcp created
160148
service/redis-master created
161149
service/redis-slave created
162150
deployment.apps/frontend created
@@ -181,25 +169,45 @@ you need is an existing `docker-compose.yml` file.
181169
```
182170

183171
```none
184-
Name: frontend
185-
Namespace: default
186-
Labels: service=frontend
187-
Selector: service=frontend
188-
Type: LoadBalancer
189-
IP: 10.0.0.183
190-
LoadBalancer Ingress: 192.0.2.89
191-
Port: 80 80/TCP
192-
NodePort: 80 31144/TCP
193-
Endpoints: 172.17.0.4:80
194-
Session Affinity: None
195-
No events.
172+
Name: frontend-tcp
173+
Namespace: default
174+
Labels: io.kompose.service=frontend-tcp
175+
Annotations: kompose.cmd: kompose convert
176+
kompose.service.type: LoadBalancer
177+
kompose.version: 1.26.0 (40646f47)
178+
Selector: io.kompose.service=frontend
179+
Type: LoadBalancer
180+
IP Family Policy: SingleStack
181+
IP Families: IPv4
182+
IP: 10.43.67.174
183+
IPs: 10.43.67.174
184+
Port: 80 80/TCP
185+
TargetPort: 80/TCP
186+
NodePort: 80 31254/TCP
187+
Endpoints: 10.42.0.25:80
188+
Session Affinity: None
189+
External Traffic Policy: Cluster
190+
Events:
191+
Type Reason Age From Message
192+
---- ------ ---- ---- -------
193+
Normal EnsuringLoadBalancer 62s service-controller Ensuring load balancer
194+
Normal AppliedDaemonSet 62s service-controller Applied LoadBalancer DaemonSet kube-system/svclb-frontend-tcp-9362d276
196195
```
197196

198197
If you're using a cloud provider, your IP will be listed next to `LoadBalancer Ingress`.
199198

200199
```sh
201200
curl http://192.0.2.89
202201
```
202+
203+
4. Clean-up.
204+
205+
After you are finished testing out the example application deployment, simply run the following command in your shell to delete the
206+
resources used.
207+
208+
```sh
209+
kubectl delete -f frontend-tcp-service.yaml,redis-master-service.yaml,redis-slave-service.yaml,frontend-deployment.yaml,redis-master-deployment.yaml,redis-slave-deployment.yaml
210+
```
203211

204212
<!-- discussion -->
205213

0 commit comments

Comments
 (0)