You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
1.1 KiB
81 lines
1.1 KiB
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: djangoblog
|
|
namespace: djangoblog
|
|
labels:
|
|
app: djangoblog
|
|
spec:
|
|
selector:
|
|
app: djangoblog
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8000
|
|
targetPort: 8000
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: nginx
|
|
namespace: djangoblog
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
selector:
|
|
app: nginx
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redis
|
|
namespace: djangoblog
|
|
labels:
|
|
app: redis
|
|
spec:
|
|
selector:
|
|
app: redis
|
|
ports:
|
|
- protocol: TCP
|
|
port: 6379
|
|
targetPort: 6379
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: db
|
|
namespace: djangoblog
|
|
labels:
|
|
app: db
|
|
spec:
|
|
selector:
|
|
app: db
|
|
ports:
|
|
- protocol: TCP
|
|
port: 3306
|
|
targetPort: 3306
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: elasticsearch
|
|
namespace: djangoblog
|
|
labels:
|
|
app: elasticsearch
|
|
spec:
|
|
selector:
|
|
app: elasticsearch
|
|
ports:
|
|
- protocol: TCP
|
|
port: 9200
|
|
targetPort: 9200
|
|
type: ClusterIP
|
|
|