Skip to content

Instantly share code, notes, and snippets.

@dbafromthecold
Last active February 11, 2022 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dbafromthecold/4371f318623ab8acfe4400063c37dbb1 to your computer and use it in GitHub Desktop.
Save dbafromthecold/4371f318623ab8acfe4400063c37dbb1 to your computer and use it in GitHub Desktop.
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