Skip to content

Instantly share code, notes, and snippets.

@richarddli
Created February 24, 2021 21:33
Show Gist options
  • Save richarddli/eb3b7c9a11ff8afaf46c9f5dbd591b1c to your computer and use it in GitHub Desktop.
Save richarddli/eb3b7c9a11ff8afaf46c9f5dbd591b1c to your computer and use it in GitHub Desktop.
k3s markdown
---
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