Skip to content

Commit

Permalink
refactor k8s to be one file
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikmonsen committed Jan 14, 2025
1 parent b35a65a commit 740160a
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 53 deletions.
24 changes: 0 additions & 24 deletions k8s/stage/deployment.yml

This file was deleted.

60 changes: 60 additions & 0 deletions k8s/stage/hugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: hugin-deployment
labels:
app: hugin
namespace: tekst-stage
spec:
replicas: 1
selector:
matchLabels:
app: hugin
template:
metadata:
labels:
app: hugin
spec:
containers:
- name: hugin
image: <harbor_url>/tekst/hugin:<version>
ports:
- name: app-port
containerPort: 3000
imagePullPolicy: Always

---

apiVersion: v1
kind: Service
metadata:
name: hugin-service
spec:
ports:
- port: 80
name: http
targetPort: 3000
selector:
app: hugin
type: ClusterIP

---

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hugin-ingress
namespace: tekst-stage
spec:
rules:
- host: <host_url>
http:
paths:
- path: /hugin
pathType: Prefix
backend:
service:
name: hugin-service
port:
number: 80

17 changes: 0 additions & 17 deletions k8s/stage/ingress.yml

This file was deleted.

12 changes: 0 additions & 12 deletions k8s/stage/service.yml

This file was deleted.

0 comments on commit 740160a

Please sign in to comment.