0
respostas

Não consigo logar no portal com usuario admin

Não estou conseguindo logar no portal para poder cadastrar um notícia.

apiVersion: v1
kind: ConfigMap
metadata: 
  name: db-configmap
data:
  MYSQL_ROOT_PASSWORD: q1w2e3r4
  MYSQL_PASSWORD: q1w2e3r4
  MYSQL_DATABASE: empresa
apiVersion: v1
kind: ConfigMap
metadata:
  name: portal-noticias
data:
  IP_SISTEMA: http://localhost:30001
apiVersion: v1
kind: ConfigMap
metadata: 
  name: config-map-sistema
data:
  HOST_DB: service-db:3306
  USER_DB: root
  PASS_DB: q1w2e3r4
  DATABSE_DB: empresa
apiVersion: v1
kind: Pod
metadata:
  name: db-noticias
  labels:
    app: db-noticias
spec:
  containers:
    - name: db-noticias
      image: aluracursos/mysql-db:1
      ports:
        - containerPort: 3306
      envFrom:
        - configMapRef:
            name: db-configmap
apiVersion: v1
kind: Pod
metadata:
  name: portal
  labels:
    app: portal
spec:
  containers:
    - name: portal-container
      image: aluracursos/portal-noticias:1
      ports:
       - containerPort: 3000
      envFrom:
        - configMapRef:
            name: portal-noticias
apiVersion: v1
kind: Pod
metadata: 
  name: sistema
  labels:
    app: sistema-service
spec:
  containers:
    - name: container-sistema
      image: aluracursos/sistema-noticias:1
      ports:
        - containerPort: 80
      envFrom:
        - configMapRef:
            name: config-map-sistema
apiVersion: v1
kind: Service
metadata: 
  name: portal-service
spec:
  type: NodePort
  ports:
    - port: 9000
      targetPort: 80
      nodePort: 30000
  selector:
    app: portal
apiVersion: v1
kind: Service
metadata:
  name: service-sistema
spec:
  type: NodePort
  ports:
    - port: 9000
      targetPort: 80
      nodePort: 30001
  selector:
      app: sistema-service
apiVersion: v1
kind: Service
metadata:
  name: service-db
spec:
  type: ClusterIP
  ports:
    - port: 3306
  selector:
    app: db-noticias