github.com/qsunny/k8s@v0.0.0-20220101153623-e6dca256d5bf/examples-master/guestbook-go/guestbook-controller.json (about) 1 { 2 "kind":"ReplicationController", 3 "apiVersion":"v1", 4 "metadata":{ 5 "name":"guestbook", 6 "labels":{ 7 "app":"guestbook" 8 } 9 }, 10 "spec":{ 11 "replicas":3, 12 "selector":{ 13 "app":"guestbook" 14 }, 15 "template":{ 16 "metadata":{ 17 "labels":{ 18 "app":"guestbook" 19 } 20 }, 21 "spec":{ 22 "containers":[ 23 { 24 "name":"guestbook", 25 "image":"k8s.gcr.io/guestbook:v3", 26 "ports":[ 27 { 28 "name":"http-server", 29 "containerPort":3000 30 } 31 ] 32 } 33 ] 34 } 35 } 36 } 37 }