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

apiVersion: apps/v1beta1 no longer contain "StatefulSet" #9

Open
browdues opened this issue Dec 21, 2020 · 2 comments
Open

apiVersion: apps/v1beta1 no longer contain "StatefulSet" #9

browdues opened this issue Dec 21, 2020 · 2 comments

Comments

@browdues
Copy link

These examples are rendered useless in later versions of kuberneters due to breaking changes in apps/v1beta1. It would be kind to your readers, a group of newbs, to update the examples so that they work.

@firstim
Copy link

firstim commented Feb 25, 2021

But most likely change to the current version, like apiVersion: apps/v1 for deployment with some modify would work.

@shadowedge
Copy link

shadowedge commented Oct 4, 2021

an worked version:

apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: sharded-redis
spec:
  serviceName: "redis"
  replicas: 3
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      terminationGracePeriodSeconds: 10
      containers:
      - name: redis
        image: redis
        ports:
        - containerPort: 6379
          name: redis

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

3 participants