Redefinido o deploy no Kubernates
parent
1c47ab50d1
commit
276ee763e1
|
@ -39,6 +39,15 @@ minikube start --memory=4096 --cpus=2 --kubernetes-version=v1.14.0 --disk-size=3
|
||||||
Realizando deploy do sistema
|
Realizando deploy do sistema
|
||||||
|
|
||||||
```
|
```
|
||||||
|
kubectl create namespace bpe-rs
|
||||||
|
kubectl create secret docker-registry service-registry --namespace=bpe-rs --docker-server=$(ipconfig getifaddr en0):5000 --docker-username=admin --docker-password=admin
|
||||||
|
|
||||||
kubectl apply -f kubernates/plataform/bpers.yaml
|
kubectl apply -f kubernates/plataform/bpers.yaml
|
||||||
kubectl apply -f kubernates/networking/bpers-gateway.yaml
|
kubectl apply -f kubernates/networking/bpers-gateway.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Identificando o IP/Porta do serviço
|
||||||
|
|
||||||
|
```
|
||||||
|
kubectl get Ingress -n bpe-rs
|
||||||
|
```
|
|
@ -1,19 +1,4 @@
|
||||||
---
|
---
|
||||||
kind: Namespace
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: bpe-rs
|
|
||||||
labels:
|
|
||||||
name: bpe-rs
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: service-registry
|
|
||||||
namespace: bpe-rs
|
|
||||||
data:
|
|
||||||
dockerconfigjson: eyJhdXRocyI6eyIxOTIuMTY4Ljk5LjEwMDo1MDAwIjp7InVzZXJuYW1lIjoiYWRtaW4iLCJwYXNzd29yZCI6ImFkbWluIiwiYXV0aCI6IllXUnRhVzQ2WVdSdGFXND0ifX19
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -46,7 +31,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: bpers
|
- name: bpers
|
||||||
image: 192.168.99.100:5000/bpers:255
|
image: 192.168.1.9:5000/bpers:255
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
|
Loading…
Reference in New Issue