services/srcs/nginx/service.yaml

22 lines
307 B
YAML
Raw Normal View History

2023-03-01 04:35:44 +01:00
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
type: LoadBalancer
selector:
app: nginx
ports:
- name: http
protocol: TCP
port: 80
nodePort: 80
- name: https
protocol: TCP
port: 443
nodePort: 443
- name: ssh
protocol: TCP
port: 22
nodePort: 22