Gluttony-Cluster/api/api-service.yaml

15 lines
202 B
YAML
Raw Normal View History

2023-11-02 02:45:22 +00:00
apiVersion: v1
kind: Service
metadata:
name: api-service
namespace: api-ns
spec:
type: LoadBalancer
ports:
2023-12-03 02:51:04 +00:00
- name: general-api
2023-11-02 02:45:22 +00:00
port: 8080
2023-11-03 22:56:57 +00:00
targetPort: 80
2023-11-02 02:45:22 +00:00
selector:
2023-12-03 02:51:04 +00:00
app: api-apps