Unable to add readiness probe details in octopus

Hello

we are trying to use rolling update strategy and as part of the same , we want to deploy below deployment from octopus through “Deploy Kubernetes containers” step.

But I am unable to save /use details of readiness probe (initialDelaySeconds,periodSeconds )

apiVersion: apps/v1
kind: Deployment
metadata:
name: tomcat
namespace: nginx
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 25%
selector:
matchLabels:
app: tomcat
template:
metadata:
labels:
app: tomcat
spec:
containers:
- image: index.docker.io/zhangjh123/tomcat
imagePullPolicy: Always
name: tomcat
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 300
periodSeconds: 30
successThreshold: 1

Greetings @kakarlayogitha! I was able to successfully add something similar to one of mine, though the YAML looks slightly different.

# This YAML exposes the fields defined in the UI. It can be edited directly or have new YAML pasted in.
# Not all available Kubernetes properties are recognized by the form exposed in the UI, and unrecognized properties are ignored during import.
# If the required properties are not supported by this step, the 'Deploy raw Kubernetes YAML' step can be used to deploy YAML directly to Kubernetes, and supports all properties.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: '#{Project.Petclinic.Deployment.Name}'
spec:
  selector:
    matchLabels:
      octopusexport: OctopusExport
  replicas: 1
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        octopusexport: OctopusExport
    spec:
      containers:
        - name: petclinic-web
          image: index.docker.io/octopussamples/petclinic-web
          ports:
            - name: http-port
              containerPort: 8080
              protocol: TCP
          env:
            - name: USERPASSWORD
              value: '#{Project.MySql.Environment.User.Password}'
            - name: USERNAME
              value: '#{Project.MySql.Environment.User.Name}'
            - name: URL
              value: '#{Project.Database.Url}'
          readinessProbe:
            timeoutSeconds: 30
            httpGet:
              host: ''
              path: /
              port: 8080
              scheme: HTTP

I used the form to first select what I wanted to do, then the Edit YAML button go generate it. Is that what you did as well?