Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix kubia-deployment-v3-with-readinesscheck.yaml [Chapter09] #50

Open
Alban-K opened this issue Jan 20, 2023 · 1 comment
Open

Fix kubia-deployment-v3-with-readinesscheck.yaml [Chapter09] #50

Alban-K opened this issue Jan 20, 2023 · 1 comment

Comments

@Alban-K
Copy link

Alban-K commented Jan 20, 2023

error: resource mapping not found for name: "kubia" namespace: "" from "kubia-deployment-v3-with-readinesscheck.yaml": no matches for kind "Deployment" in version "apps/v1beta1"
ensure CRDs are installed first

@Alban-K
Copy link
Author

Alban-K commented Jan 20, 2023

fix

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kubia
spec:
  selector:
    matchLabels:
      app: kubia
  replicas: 3
  minReadySeconds: 10
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
  template:
    metadata:
      name: kubia
      labels:
        app: kubia
    spec:
      containers:
      - image: luksa/kubia:v3
        name: nodejs
        readinessProbe:
          periodSeconds: 1
          httpGet:
            path: /
            port: 8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant