k3s-cluster/cluster/apps/database/redis/service.yaml

17 lines
271 B
YAML
Raw Normal View History

2023-04-07 02:39:06 +00:00
apiVersion: v1
kind: Service
metadata:
name: postgresql
namespace: database
labels:
app: postgresql
database: postgresql
kubernetes.io/name: "postgresql"
spec:
selector:
app: postgresql
ports:
- name: pgsql
port: 5432
targetPort: 5432