Skip to content

Commit

Permalink
add k8s deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
parrotmac committed Jul 29, 2023
1 parent d66f89c commit b10e6af
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions deploy/k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: gary
spec:
replicas: 1
revisionHistoryLimit: 3
selector:
matchLabels:
app: gary
template:
metadata:
labels:
app: gary
spec:
containers:
- image: ghcr.io/parrotmac/gary:latest
name: gary
ports:
- containerPort: 8000
10 changes: 10 additions & 0 deletions deploy/k8s/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: gary
spec:
ports:
- port: 8000
targetPort: 8000
selector:
app: gary

0 comments on commit b10e6af

Please sign in to comment.