Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hiro08gh/nextjs-k8s-strategy
Next.js (SSR) k8s strategy.
https://github.com/hiro08gh/nextjs-k8s-strategy
Last synced: 11 days ago
JSON representation
Next.js (SSR) k8s strategy.
- Host: GitHub
- URL: https://github.com/hiro08gh/nextjs-k8s-strategy
- Owner: hiro08gh
- Created: 2019-08-29T02:27:55.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T09:10:43.000Z (almost 2 years ago)
- Last Synced: 2024-12-17T08:58:46.848Z (11 days ago)
- Language: TypeScript
- Homepage:
- Size: 1.27 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nextjs-k8s-strategy
## setup && development
```
$ yarn install
$ yarn dev
```## docker build
```
$ docker build -t hiro08/nextjs-k8s-strategy .
```## docker run
```
$ docker run -d -p 3000:3000 hiro08/nextjs-k8s-strategy:latest
```## docker registory
```
$ docker pull hiro08/nextjs-k8s-strategy:latest
```Open localhost:3000
# minikube
start minikube
```
$ minikube start
```create namespace
```
$ kubectl create -f kube/namespace
```created myspace
## Deployment & service
```
$ kubectl create -f kube/deployment.yaml --namespace=myspace
``````
$ kubectl get services --namespace=myspace
``````
$ kubectl get pods --namespace=myspace
``````
$ minikube service nextjs-k8s-strategy --namespace=myspace
```
## Ingresstodo