-
-
Save gowatana/b0e35778809d3357831347228011ae44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
vSphere with Tanzu 8.0 U2 ラボ環境構築。Part-14: TKGS クラスタでのアプリ展開
https://vm.gowatana.jp/entry/2023/12/14/042349