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 )
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?