Last active
September 15, 2021 16:27
-
-
Save mars64/0c25b043d48395e374489b370b7217dd to your computer and use it in GitHub Desktop.
default 404 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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: default-http-backend | |
namespace: default | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: default-http-backend | |
template: | |
metadata: | |
labels: | |
name: default-http-backend | |
app: default-http-backend | |
spec: | |
containers: | |
- name: default-http-backend | |
image: k8s.gcr.io/defaultbackend-amd64:1.5 | |
livenessProbe: | |
httpGet: | |
path: /healthz | |
port: 8080 | |
scheme: HTTP | |
initialDelaySeconds: 30 | |
timeoutSeconds: 5 | |
ports: | |
- containerPort: 8080 | |
resources: | |
limits: | |
cpu: 10m | |
memory: 20Mi | |
requests: | |
cpu: 1m | |
memory: 5Mi | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: default-http-backend | |
namespace: default | |
spec: | |
type: NodePort | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
name: http | |
selector: | |
app: default-http-backend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment