29 lines
582 B
YAML
29 lines
582 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: zhinian-web
|
|
namespace: zhinian
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app.kubernetes.io/name: zhinian
|
|
app.kubernetes.io/component: web
|
|
ports:
|
|
- name: http
|
|
port: 3000
|
|
targetPort: 3000
|
|
---
|
|
# Deliberately selectorless: the public Ingress routes internal API paths here,
|
|
# where there are no endpoints, instead of forwarding them to Web.
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: zhinian-public-deny
|
|
namespace: zhinian
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- name: deny
|
|
port: 80
|
|
targetPort: 8080
|