Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created December 13, 2023 18:38
Show Gist options
  • Save gowatana/b0e35778809d3357831347228011ae44 to your computer and use it in GitHub Desktop.
Save gowatana/b0e35778809d3357831347228011ae44 to your computer and use it in GitHub Desktop.
---
kind: Service
apiVersion: v1
metadata:
name: srvclb-ngnx
spec:
selector:
app: hello
tier: frontend
ports:
- protocol: "TCP"
port: 80
targetPort: 80
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: loadbalancer
spec:
replicas: 2
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
tier: frontend
spec:
containers:
- name: nginx
image: "nginxdemos/hello"
@gowatana
Copy link
Author

下記の投稿むけ。

vSphere with Tanzu 8.0 U2 ラボ環境構築。Part-14: TKGS クラスタでのアプリ展開
https://vm.gowatana.jp/entry/2023/12/14/042349

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment