microsoft / microsoft/sql-server-samples

Unable to use Kubernetes Operator on k8s 1.16

Open
#674 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PowerShell
Stars
11.2k
Forks
9.1k
Avg merge
2d 7h
Merged PRs (30d)
14

Description

after trying to deploy samples/features/high availability/Kubernetes/sample-manifest-files/*.yaml on k8s version 1.16 I get this error from the operator pod:

[sqlservers] 2019/11/04 23:11:41 agLabelsToAdd: [ag-service.mssql.microsoft.com/ag1]
[sqlservers] ERROR: 2019/11/04 23:11:41 could not process update request: could not create stateful set: the server could not find the requested resource

I think this is likely due to api deprecations in k8 1.16. StatefulSets moved to app/v1.
Is there a repo for this operator container?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with samples/features/high availability/Kubernetes/sample-manifest-files/*.yaml and reproduce the operator pod error on Kubernetes 1.16. Trace the StatefulSet creation used by the operator and compare its requested resource with the APIs available in that Kubernetes version. Done means the samples deploy without the "server could not find the requested resource" error.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.