Skip to content
Permalink
71e503f0a7
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (45 sloc) 784 Bytes
apiVersion: apps/v1
kind: Deployment
metadata:
name: python-example
labels:
app: python-example
spec:
replicas: 1
selector:
matchLabels:
app: python-example
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
minReadySeconds: 5
template:
metadata:
labels:
app: python-example
spec:
containers:
- name: python-example
image: <IMAGE>
ports:
- containerPort: 80
resources:
requests:
cpu: 100m
limits:
cpu: 100m
---
apiVersion: v1
kind: Service
metadata:
name: python-example-service
spec:
type: LoadBalancer
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
selector:
app: python-example