educative.io

Error in the page

In the code you create 2 api containers but in the text only one is described.

Still when I try even with one api container I get an error:

❯ kubectl logs go-demo-2

Defaulted container "db" out of: db, api

runtime: failed to create new OS thread (have 2 already; errno=22)

fatal error: newosproc

runtime stack:

runtime.throw(0x524da0, 0x9)

/usr/local/go/src/runtime/panic.go:527 +0x90

runtime.newosproc(0xc82002c000, 0xc82003bfc0)

/usr/local/go/src/runtime/os1_linux.go:150 +0x1ab

runtime.newm(0x555ce8, 0x0)

/usr/local/go/src/runtime/proc1.go:1105 +0x130

runtime.main.func1()

/usr/local/go/src/runtime/proc.go:48 +0x2c

runtime.systemstack(0x5c4300)

/usr/local/go/src/runtime/asm_amd64.s:262 +0x79

runtime.mstart()

/usr/local/go/src/runtime/proc1.go:674

goroutine 1 [running]:

runtime.systemstack_switch()

/usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc820026770 sp=0xc820026768

runtime.main()

/usr/local/go/src/runtime/proc.go:49 +0x62 fp=0xc8200267c0 sp=0xc820026770

runtime.goexit()

/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc8200267c8 sp=0xc8200267c0

Course: https://www.educative.io/collection/10370001/5920988434792448
Lesson: https://www.educative.io/collection/page/10370001/5920988434792448/5258970736361472

I think for the error:

          image: mongo:3

fixes it


Course: https://www.educative.io/collection/10370001/5920988434792448
Lesson: https://www.educative.io/collection/page/10370001/5920988434792448/5163971814359040