Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Error deploying pods with GMSA - unknown field "windowsOptions" #2009

Closed
@jjburr

Description

followed each step on the doc here, however when creating a deployment with the gmsa account I get an error:

deployment.yaml": error validating data: ValidationError(Deployment.spec.template.spec.securityContext): unknown field "windowsOptions" in io.k8s.api.core.v1.PodSecurityContext; if you choose to ignore these errors, turn validation off with --validate=false

Problem:
Cant deploy pod with gmsa account in the deployment

Page to Update:
https://kubernetes.io/...

v1.14.6

deployment.yaml

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  labels:
    app: webapp
  name: webapp
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: webapp
    spec:
      securityContext:
        windowsOptions:
          gmsaCredentialSpecName: gmsa-web
      containers:
        - name: webapp
          image: somerepo.azurecr.io/someimage
          ports:
            - containerPort: 80
      dnsPolicy: "ClusterFirst"        
      nodeSelector:
        beta.kubernetes.io/os: windows

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions