Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcc1212 committed May 24, 2024
1 parent e5eb0df commit 67ac48f
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: docker/cacher/Dockerfile
push: true
tags: ghcr.io/nmcc1212/cacher:latest
Expand All @@ -51,6 +52,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: docker/next-app/Dockerfile
push: true
tags: ghcr.io/nmcc1212/next-app:latest
Expand All @@ -75,6 +77,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
file: docker/rss-to-json/Dockerfile
push: true
tags: ghcr.io/nmcc1212/rss-to-json:latest
33 changes: 33 additions & 0 deletions docker/kube/cacher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cacher
spec:
replicas: 1
selector:
matchLabels:
app: cacher
template:
metadata:
labels:
app: cacher
spec:
containers:
- name: cacher
image: ghcr.io/nmcc1212/cacher
ports:
- containerPort: 50111

---
apiVersion: v1
kind: Service
metadata:
name: cacher
spec:
selector:
app: cacher
ports:
- protocol: TCP
port: 50111
targetPort: 50111
type: LoadBalancer
33 changes: 33 additions & 0 deletions docker/kube/next-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: news-aggregation
spec:
replicas: 1
selector:
matchLabels:
app: news-aggregation
template:
metadata:
labels:
app: news-aggregation
spec:
containers:
- name: news-aggregation
image: ghcr.io/nmcc1212/next-app
ports:
- containerPort: 3000

---
apiVersion: v1
kind: Service
metadata:
name: news-aggregation
spec:
selector:
app: news-aggregation
ports:
- protocol: TCP
port: 3000
targetPort: 3000
type: LoadBalancer
33 changes: 33 additions & 0 deletions docker/kube/rss-to-json.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rss-to-json
spec:
replicas: 1
selector:
matchLabels:
app: rss-to-json
template:
metadata:
labels:
app: rss-to-json
spec:
containers:
- name: rss-to-json
image: ghcr.io/nmcc1212/rss-to-json
ports:
- containerPort: 50110

---
apiVersion: v1
kind: Service
metadata:
name: rss-to-json
spec:
selector:
app: rss-to-json
ports:
- protocol: TCP
port: 50110
targetPort: 50110
type: LoadBalancer

0 comments on commit 67ac48f

Please sign in to comment.