Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # k8s apps <code> apiVersion: apps/v1 kind: Deployment metadata: labels: app.kubernetes.io/name: load-balancer-example name: hello-world spec: replicas: 5 selector: matchLabels: app.kubernetes.io/name: load-balancer-example template: metadata: labels: app.kubernetes.io/name: load-balancer-example spec: containers: - image: gcr.io/google-samples/node-hello:1.0 name: hello-world ports: - containerPort: 8080 </code> ### expose <code> kubectl expose deployment hello-world --type=LoadBalancer --name=my-service </code> [[minikube tunnel]] <code> minikube tunnel </code> ## Links - https://kubernetes.io/ko/docs/tutorials/stateless-application/expose-external-ip-address/ open/k8s-apps.txt Last modified: 2024/10/05 06:15by 127.0.0.1