aula-02: Kubernetes com liveness probe
Deployment com liveness probe para detectar quando a app trava e reiniciar o container automaticamente.
This commit is contained in:
12
aula-02/service.yaml
Normal file
12
aula-02/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: node-bugado
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: node-bugado
|
||||
ports:
|
||||
- port: 3000
|
||||
targetPort: 3000
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user