We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea85663 commit 846f1b5Copy full SHA for 846f1b5
lb-external.yaml
@@ -0,0 +1,10 @@
1
+apiVersion: v1
2
+kind: Service
3
+metadata:
4
+ name: wildfly-service
5
+spec:
6
+ ports:
7
+ - name: web
8
+ port: 80
9
+ type: ExternalName
10
+ externalName: ec2-34-210-79-105.us-west-2.compute.amazonaws.com
lb-loadbalancer.yaml
@@ -0,0 +1,28 @@
+ selector:
+ app: wildfly-rs-pod
+ 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