Skip to content

Commit c31e299

Browse files
authored
Merge pull request #7 from ozerovandrei/update-services
Update Services
2 parents f329614 + 35f3c41 commit c31e299

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

services/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Services
2+
3+
**Note:** Octavia load-balancer will be created in case of `type: LoadBalancer`.

services/nginx-loadbalancer.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
---
12
# nginx-loadbalancer.yaml
23
apiVersion: v1
34
kind: Service
45
metadata:
56
name: nginx-service
67
labels:
7-
app: webservice
8+
app: nginx
9+
annotations:
10+
loadbalancer.openstack.org/x-forwarded-for: true
811
spec:
912
type: LoadBalancer
1013
ports:
1114
- port: 80
1215
protocol: TCP
1316
selector:
14-
app: webservice
17+
app: nginx

services/nginx-nodeport.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
---
12
# nginx-nodeport.yaml
23
apiVersion: v1
34
kind: Service
45
metadata:
56
name: nginx-service
67
labels:
7-
app: webservice
8+
app: nginx
89
spec:
910
type: NodePort
1011
ports:
1112
- port: 80
1213
nodePort: 30001
1314
protocol: TCP
1415
selector:
15-
app: webservice
16+
app: nginx

0 commit comments

Comments
 (0)