Skip to content

Commit

Permalink
Deploy app with K8s (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelicianoTech authored Oct 23, 2023
1 parent 23d2667 commit 9e6d376
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions k8s/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: cloud-unpacked
name: ippi
labels:
app: ippi
spec:
replicas: 1
selector:
matchLabels:
app: ippi
template:
metadata:
labels:
app: ippi
spec:
containers:
- name: app
image: "ghcr.io/cloud-unpacked/ippi:latest"
ports:
- containerPort: 9000
---
apiVersion: v1
kind: Service
metadata:
namespace: cloud-unpacked
name: webapp-production
labels:
app: ippi
spec:
type: ClusterIP
selector:
app: ippi
ports:
- protocol: TCP
name: http
port: 9000
targetPort: 9000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: cloud-unpacked
name: ippi
labels:
app: ippi
spec:
ingressClassName: caddy
rules:
- host: ippi.cloudunpacked.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: ippi
port:
number: 9000
- host: 4.ippi.cloudunpacked.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: ippi
port:
number: 9000
- host: 6.ippi.cloudunpacked.com
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: ippi
port:
number: 9000

0 comments on commit 9e6d376

Please sign in to comment.