letsEncryptKubernetes/app/02-app-svc.yaml

15 lines
203 B
YAML

kind: Service
apiVersion: v1
metadata:
name: app-svc
namespace: app
spec:
selector:
app: app
type: ClusterIP
ports:
- protocol: TCP
name: app-main
port: 8080
targetPort: 8080