We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b0670a commit d1138feCopy full SHA for d1138fe
structural/Adapter/service.yml
@@ -6,12 +6,17 @@ spec:
6
selector:
7
app: random-generator
8
ports:
9
+ # Random service is reachable on port 8080
10
- name: random
11
port: 8080
12
protocol: TCP
13
targetPort: 8080
14
+ # Export prometheus conform data over port 9889
15
- name: prometheus
16
port: 9889
17
18
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
22
type: NodePort
0 commit comments