mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
45 lines
951 B
YAML
45 lines
951 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ghost-service
|
|
namespace: ghost-blog
|
|
labels:
|
|
app: ghost-blog
|
|
app.kubernetes.io/name: ghost-service
|
|
app.kubernetes.io/instance: ghost-blog
|
|
app.kubernetes.io/version: '5.92'
|
|
app.kubernetes.io/component: service-frontend
|
|
app.kubernetes.io/part-of: ghost-blog
|
|
spec:
|
|
ports:
|
|
- port: 2368
|
|
protocol: TCP
|
|
targetPort: ghost
|
|
name: ghost
|
|
type: ClusterIP
|
|
selector:
|
|
app: ghost-blog
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: ghost-mysql-service
|
|
namespace: ghost-blog
|
|
labels:
|
|
app: ghost-mysql
|
|
app.kubernetes.io/name: ghost-mysql-service
|
|
app.kubernetes.io/instance: ghost-blog
|
|
app.kubernetes.io/version: '5.92'
|
|
app.kubernetes.io/component: service-database
|
|
app.kubernetes.io/part-of: ghost-blog
|
|
spec:
|
|
ports:
|
|
- port: 3306
|
|
protocol: TCP
|
|
targetPort: mysql
|
|
name: mysql
|
|
type: ClusterIP
|
|
selector:
|
|
app: ghost-mysql
|