Skip to content

Instantly share code, notes, and snippets.

@vamsijakkula
Created June 22, 2020 08:36
Show Gist options
  • Save vamsijakkula/d8223ee99fe029f8e15102253cb040a2 to your computer and use it in GitHub Desktop.
Save vamsijakkula/d8223ee99fe029f8e15102253cb040a2 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: hello-python-service
spec:
selector:
app: hello-python
ports:
- protocol: "TCP"
port: 6000
targetPort: 5000
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-python
spec:
selector:
matchLabels:
app: hello-python
replicas: 4
template:
metadata:
labels:
app: hello-python
spec:
containers:
- name: hello-python
image: vamsijakkula/hello-python
readinessProbe:
httpGet:
path: /healthx
port: 5000
initialDelaySeconds: 5
timeoutSeconds: 2
periodSeconds: 10
failureThreshold: 3
ports:
- containerPort: 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment