open:k8s-apps

k8s apps

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

kubectl expose deployment hello-world --type=LoadBalancer --name=my-service

minikube tunnel

minikube tunnel

  • open/k8s-apps.txt
  • 마지막으로 수정됨: 2021/10/09 11:10
  • 저자 127.0.0.1