Sign in

Administrator / spring-boot-microservices-onlineshooping-fullstack · Files

Logo

GitLab

  • Back to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • spring-boot-microservices-onlineshooping-fullstack
  • Additional
  • hi.sh
  • modified
    dbe88d0b
    Administrator authored
    2025-10-31 19:00:00 +0800  
    Browse Code »
hi.sh 255 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
kubectl apply -f - <<EOF
apiVersion: v1
kind: Service
metadata:
  name: frontend-service
  namespace: ecommerce
spec:
  selector:
    app: frontend
  ports:
  - port: 80
    targetPort: 8080
    protocol: TCP
  type: ClusterIP  # ← 改为 ClusterIP
EOF