diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml index 1814a53..18b99e3 100644 --- a/.github/workflows/build-containers.yml +++ b/.github/workflows/build-containers.yml @@ -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 @@ -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 @@ -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 diff --git a/docker/kube/cacher.yml b/docker/kube/cacher.yml new file mode 100644 index 0000000..51d2213 --- /dev/null +++ b/docker/kube/cacher.yml @@ -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 diff --git a/docker/kube/next-app.yml b/docker/kube/next-app.yml new file mode 100644 index 0000000..8798ac6 --- /dev/null +++ b/docker/kube/next-app.yml @@ -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 \ No newline at end of file diff --git a/docker/kube/rss-to-json.yml b/docker/kube/rss-to-json.yml new file mode 100644 index 0000000..48bee67 --- /dev/null +++ b/docker/kube/rss-to-json.yml @@ -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