Skip to content

Instantly share code, notes, and snippets.

@andersonkxiass
Created March 29, 2020 01:14
Show Gist options
  • Save andersonkxiass/93bb6647df56e61a50a239dded82a26e to your computer and use it in GitHub Desktop.
Save andersonkxiass/93bb6647df56e61a50a239dded82a26e to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: wishapp
namespace: default
labels:
app: app
name: wishapp
spec:
replicas: 1
selector:
matchLabels:
app: app
task: wishapp
template:
metadata:
labels:
app: app
task: wishapp
spec:
containers:
- name: wishapp
image: andersonkxiass/wishapp:latest
env:
- name: VUE_APP_API
value: "http://wishapi:8080/list"
ports:
- containerPort: 80
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: wishapp
namespace: default
spec:
selector:
app: app
task: wishapp
ports:
- name: http
port: 80
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: webingressroute
namespace: default
spec:
entryPoints:
- web
routes:
- match: Host(`app.localhost`)
kind: Rule
services:
- name: wishapp
port: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment