Created
February 24, 2021 21:33
-
-
Save richarddli/eb3b7c9a11ff8afaf46c9f5dbd591b1c to your computer and use it in GitHub Desktop.
k3s markdown
This file contains 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: quote | |
spec: | |
ports: | |
- name: http | |
port: 80 | |
targetPort: 8080 | |
selector: | |
app: quote | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: quote | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: quote | |
strategy: | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
app: quote | |
spec: | |
containers: | |
- name: backend | |
image: docker.io/datawire/quote:0.4.1 | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: getambassador.io/v2 | |
kind: Mapping | |
metadata: | |
name: quote-backend | |
spec: | |
prefix: /give-me-a-quote/ | |
service: quote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment