Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

CrashLoopBackOff

Estou tendo problema no meu deploy

kind: Namespace
apiVersion: v1
metadata:
  name: blog
  labels:
    app: blog
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: blog-deploy
  namespace: blog
  labels:
    app: blog
spec:
  replicas: 1  
  selector:
    matchLabels:
      app: blog
  strategy:
    type: RollingUpdate    
  template:
    metadata:
      labels:
        app: blog
    spec:
      containers:
      - name: blog-image
        image: maykealisson/server
        resources:
          requests:
            cpu: "240m"
            memory: 400Mi
          limits:
            cpu: "250m"
            memory: 500Mi 
        ports:
          - containerPort: 3000
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
  name: blog-hpa
  namespace: blog
spec:
  scaleTargetRef:
    apiVersion: apps/v1
    kind: Deployment
    name: blog-deploy
  minReplicas: 1
  maxReplicas: 3
  metrics:
  - type: Resource
    resource:
      name: cpu
      target:
        type: Utilization
        averageUtilization: 90
---
apiVersion: v1
kind: Service
metadata:
  name: blog-svc
  namespace: blog
spec:
  selector:
    app: blog
  ports:
  - port: 80
    targetPort: 3000
  type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: blog-ingress
  namespace: blog
  annotations:
    kubernetes.io/igress.class: nginx
    ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/rewrite-target: "/"
spec:
  rules:
  - host: maykealisson.com
    http:
      paths:
      - pathType: Prefix
        path: "/"
        backend:
          service:
            name: blog-svc
            port: 
              number: 3000
1 resposta
solução!

Resolvido, o problema era na criação da image no Mac m1 https://stackoverflow.com/questions/42494853/standard-init-linux-go178-exec-user-process-caused-exec-format-error