Skip to content

Commit 79874a5

Browse files
Cria kubernetes/services
1 parent 16f497b commit 79874a5

File tree

3 files changed

+64
-0
lines changed

3 files changed

+64
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: markapi-hml-django-svc
5+
namespace: markapi-hml
6+
labels:
7+
app: markapi-hml-django
8+
selfLink: /api/v1/namespaces/markapi-hml/services/markapi-hml-django-svc
9+
spec:
10+
ports:
11+
- name: webapp
12+
protocol: TCP
13+
port: 5000
14+
targetPort: 5000
15+
nodePort:
16+
selector:
17+
app: markapi-hml-django
18+
clusterIP:
19+
clusterIPs:
20+
type: NodePort
21+
sessionAffinity: None
22+
externalTrafficPolicy: Cluster
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: markapi-hml-postgres
5+
namespace: markapi-hml
6+
labels:
7+
app: markapi-hml-postgres
8+
annotations:
9+
selfLink: /api/v1/namespaces/markapi-hml/services/markapi-hml-postgres
10+
spec:
11+
ports:
12+
- name: postgres
13+
protocol: TCP
14+
port: 5432
15+
targetPort: 5432
16+
selector:
17+
app: markapi-hml-postgres
18+
clusterIP:
19+
clusterIPs:
20+
type: ClusterIP
21+
sessionAffinity: None
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: redis
5+
namespace: markapi-hml
6+
labels:
7+
app: redis
8+
annotations:
9+
selfLink: /api/v1/namespaces/markapi-hml/services/redis
10+
spec:
11+
ports:
12+
- name: redis
13+
protocol: TCP
14+
port: 6379
15+
targetPort: 6379
16+
selector:
17+
app: redis
18+
clusterIP:
19+
clusterIPs:
20+
type: ClusterIP
21+
sessionAffinity: None

0 commit comments

Comments
 (0)