Skip to content

Instantly share code, notes, and snippets.

@SaifRehman
Last active April 9, 2020 00:38
Show Gist options
  • Save SaifRehman/2014efc829f657ece374b080d4cec7db to your computer and use it in GitHub Desktop.
Save SaifRehman/2014efc829f657ece374b080d4cec7db to your computer and use it in GitHub Desktop.
app-deploy gist
apiVersion: appsody.dev/v1beta1
kind: AppsodyApplication
metadata:
name: APPSODY_PROJECT_NAME
spec:
version: 1.0.0
applicationImage: APPSODY_DOCKER_IMAGE
stack: APPSODY_STACK
service:
type: NodePort
port: APPSODY_PORT
annotations:
prometheus.io/scrape: 'true'
monitoring:
labels:
k8s-app: APPSODY_PROJECT_NAME
readinessProbe:
failureThreshold: 12
httpGet:
path: /ready
port: APPSODY_PORT
initialDelaySeconds: 5
periodSeconds: 2
timeoutSeconds: 1
livenessProbe:
failureThreshold: 12
httpGet:
path: /live
port: APPSODY_PORT
initialDelaySeconds: 5
periodSeconds: 2
expose: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment