Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 1 addition & 44 deletions deployment-kind.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: health-check-deployment
spec:
selector:
matchLabels:
app: health-check
template:
metadata:
labels:
app: health-check
spec:
containers:
- name: health-check
image: madhuakula/k8s-goat-health-check
resources:
limits:
memory: "100Mi"
cpu: "30m"
ports:
- containerPort: 80
# Custom Stuff
securityContext:
privileged: true
volumeMounts:
- mountPath: /custom/docker/docker.sock
name: docker-sock-volume
volumes:
- name: docker-sock-volume
hostPath:
path: /var/run/docker.sock
---
apiVersion: v1
kind: Service
metadata:
name: health-check-service
spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
selector:
app: health-check