38 lines
745 B
YAML
38 lines
745 B
YAML
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: ipapi
|
||
|
name: ipapi
|
||
|
namespace: ipapi
|
||
|
spec:
|
||
|
progressDeadlineSeconds: 600
|
||
|
replicas: 1
|
||
|
revisionHistoryLimit: 2
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
component: ipapi
|
||
|
strategy:
|
||
|
rollingUpdate:
|
||
|
maxSurge: 25%
|
||
|
maxUnavailable: 25%
|
||
|
type: RollingUpdate
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
component: ipapi
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: docker.io/mpolden/echoip:latest
|
||
|
imagePullPolicy: Always
|
||
|
name: ipapi
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
name: http
|
||
|
protocol: TCP
|
||
|
dnsPolicy: ClusterFirst
|
||
|
restartPolicy: Always
|
||
|
securityContext: {}
|
||
|
terminationGracePeriodSeconds: 30
|