añadimos servicios

parent deac978b
apiVersion: v1
kind: Service
metadata:
name: internal-service
spec:
type: ClusterIP
selector:
app: firstapp
ports:
- protocol: TCP
port: 80
targetPort: nodejs-port
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: awesome-service
spec:
type: LoadBalancer
selector:
app: firstapp
ports:
- protocol: TCP
port: 80
targetPort: nodejs-port
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: nodeport-service
spec:
type: NodePort
selector:
app: firstapp
ports:
- protocol: TCP
port: 80
targetPort: nodejs-port
nodePort: 32766
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment