Last active
December 5, 2016 10:09
-
-
Save caussourd/afb2c9ad864c546f1ab871497c30fa63 to your computer and use it in GitHub Desktop.
Default backend
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: v1 | |
kind: Service | |
metadata: | |
name: default-http-backend | |
labels: | |
app: default-http-backend | |
spec: | |
type: NodePort | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
selector: | |
app: default-http-backend | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: default-http-backend | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: default-http-backend | |
spec: | |
containers: | |
- name: default-http-backend | |
image: gcr.io/google_containers/defaultbackend:1.0 | |
# It serves a 404 page at / | |
# It serves 200 on a /healthz endpoint | |
livenessProbe: | |
httpGet: | |
path: /healthz | |
port: 8080 | |
scheme: HTTP | |
initialDelaySeconds: 30 | |
timeoutSeconds: 5 | |
ports: | |
- containerPort: 8080 | |
resources: | |
limits: | |
cpu: 10m | |
memory: 20Mi | |
requests: | |
cpu: 10m | |
memory: 20Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment