We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db43f7c commit 9eef078Copy full SHA for 9eef078
lb-loadbalancer.yml
@@ -0,0 +1,28 @@
1
+apiVersion: v1
2
+kind: Service
3
+metadata:
4
+ name: wildfly-service
5
+spec:
6
+ selector:
7
+ app: wildfly-rs-pod
8
+ ports:
9
+ - name: web
10
+ port: 8080
11
+ type: LoadBalancer
12
+---
13
+apiVersion: extensions/v1beta1
14
+kind: ReplicaSet
15
16
+ name: wildfly-rs
17
18
+ replicas: 2
19
+ template:
20
+ metadata:
21
+ labels:
22
23
+ spec:
24
+ containers:
25
+ - name: wildfly
26
+ image: jboss/wildfly
27
28
+ - containerPort: 8080
0 commit comments