Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created December 30, 2019 13:20
Show Gist options
  • Select an option

  • Save ereshzealous/402ff6832568bca721275d13b907c06b to your computer and use it in GitHub Desktop.

Select an option

Save ereshzealous/402ff6832568bca721275d13b907c06b to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: minikube-sample
spec:
replicas: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: minikube-sample
spec:
containers:
- name: minikube-sample
image: 'gcr.io/meta-iterator-236009/spring-boot-example:v2'
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /home/data
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: minikube-sample
labels:
name: minikube-sample
spec:
ports:
- port: 8080
targetPort: 8080
protocol: TCP
selector:
app: minikube-sample
type: LoadBalancer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment