apiVersion: v1
kind: Service
metadata:
name: nginx-service
namespace: kube-system
spec:
type: NodePort
selector:
app: nginx
ports:
- port: 80