Created
July 13, 2019 15:44
-
-
Save theraaz/9e6c9001f9cc9744214a901adfdbc94a to your computer and use it in GitHub Desktop.
Kubernetes + Travis CI/CD with DigitalOcean - https://medium.com/p/c0c4058b7734
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: raz4 | |
namespace: production | |
labels: | |
app: raz4 | |
spec: | |
replicas: 3 | |
minReadySeconds: 60 # wait for 60 seconds before considering pod as ready and continuing with next | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxUnavailable: 1 | |
maxSurge: 1 | |
selector: | |
matchLabels: | |
app: raz4api | |
template: | |
metadata: | |
labels: | |
app: raz4api | |
spec: | |
containers: | |
- name: raz4api | |
image: $REPO_URL/$IMAGE_NAME:$TRAVIS_COMMIT | |
ports: | |
- containerPort: $RAZ_API_PORT | |
name: http | |
envFrom: | |
- secretRef: | |
name: v4-secrets-smartapi | |
readinessProbe: | |
initialDelaySeconds: 600 | |
periodSeconds: 5 | |
timeoutSeconds: 5 | |
failureThreshold: 3 | |
httpGet: | |
path: /status | |
port: http | |
livenessProbe: | |
initialDelaySeconds: 600 | |
periodSeconds: 5 | |
timeoutSeconds: 5 | |
failureThreshold: 3 | |
httpGet: | |
path: /status | |
port: http | |
imagePullSecrets: | |
- name: eu-west-2-ecr-registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment