Pynguins

Kubernetes

Deploy and expose app
r@r-To-be-filled-by-O-E-M:~/Downloads$ kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
deployment.apps/hello-minikube created
r@r-To-be-filled-by-O-E-M:~/Downloads$ kubectl expose deployment hello-minikube --type=NodePort --port=8080
service/hello-minikube exposed
r@r-To-be-filled-by-O-E-M:~/Downloads$ kubectl get services hello-minikube
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-minikube NodePort 10.99.214.192 <none> 8080:30569/TCP 2m20s
r@r-To-be-filled-by-O-E-M:~/Downloads$ kubectl port-forward service/hello-minikube 7080:8080
Forwarding from 127.0.0.1:7080 -> 8080
Forwarding from [::1]:7080 -> 8080
Handling connection for 7080
Handling connection for 7080

Deploy stack
r@r-To-be-filled-by-O-E-M:~/dev/code/archesky-docker/kubernetes$ ls
arangodb-deployment.yaml auth-server-deployment.yaml content-server-deployment.yaml keycloak-deployment.yaml kustomization.yaml postgres-service.yaml
arangodb-service.yaml auth-server-service.yaml content-server-service.yaml keycloak-service.yaml postgres-deployment.yaml
r@r-To-be-filled-by-O-E-M:~/dev/code/archesky-docker/kubernetes$ kubectl apply -k .
service/arangodb created
service/auth-server created
service/content-server created
service/keycloak created
service/postgres created
deployment.apps/arangodb created
deployment.apps/auth-server created
deployment.apps/content-server created
deployment.apps/keycloak created
deployment.apps/postgres created
r@r-To-be-filled-by-O-E-M:~/dev/code/archesky-docker/kubernetes$

Comments | Gallery