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

no matches for kind "Deployment" in version "extensions/v1beta1" #99

Closed
chrisfosterelli opened this issue Jun 29, 2020 · 0 comments
Closed

Comments

@chrisfosterelli
Copy link

On recent kubernetes extensions/v1beta1 does not support Deployments. It has to be changed to apiVersion: apps/v1. It also needs a spec.selector field. E.g.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: k8s-snapshots
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: k8s-snapshots
  template:
    metadata:
      labels:
        app: k8s-snapshots
    spec:
      serviceAccountName: k8s-snapshots # <- If used
      containers:
        - name: k8s-snapshots
          image: elsdoerfer/k8s-snapshots:latest

Perhaps the README would benefit from an update?

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