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

17 lines
271 B
YAML

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