Skip to content

Commit d1138fe

Browse files
committed
chore: Update some comments in examples
1 parent 2b0670a commit d1138fe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

structural/Adapter/service.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ spec:
66
selector:
77
app: random-generator
88
ports:
9+
# Random service is reachable on port 8080
910
- name: random
1011
port: 8080
1112
protocol: TCP
1213
targetPort: 8080
14+
# Export prometheus conform data over port 9889
1315
- name: prometheus
1416
port: 9889
1517
protocol: TCP
1618
targetPort: 9889
19+
# Type NodePort for being able to directly access the service from outside the cluster
20+
# Use "kubectl get svc random-generator -o jsonpath={.spec.ports[0].nodePort}" to find out
21+
# the dynamically assigned port
1722
type: NodePort

0 commit comments

Comments
 (0)