Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```
## Ingress

todo