Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Deployment yaml for testing a pod eviction in kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: sqlserver2019-deployment
spec:
replicas: 1
selector:
matchLabels:
name: sqlserver2019-pod
template:
metadata:
labels:
name: sqlserver2019-pod
spec:
containers:
- name: sqlserver2019
image: mcr.microsoft.com/mssql/server/2019-CU3-ubuntu:16.04
ports:
- containerPort: 1433
livenessProbe:
tcpSocket:
port: 1433
initialDelaySeconds: 15
periodSeconds: 30
env:
- name: MSSQL_PID
value: "Developer"
- name: ACCEPT_EULA
value: "Y"
- name: MSSQL_AGENT_ENABLED
value: "Y"
- name: MSSQL_SA_PASSWORD
value: "Testing1122"
resources:
requests:
memory: "1024Mi"
cpu: "1000m"
limits:
memory: "2048Mi"
cpu: "2000m"
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.