This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.
6.3. Windows 容器工作负载部署示例
在有 Windows 计算节点可用后,您可以将 Windows 容器工作负载部署到集群中。
注意
这个示例部署仅供参考。
Service 对象示例
apiVersion: v1
kind: Service
metadata:
name: win-webserver
labels:
app: win-webserver
spec:
ports:
# the port that this service should serve on
- port: 80
targetPort: 80
selector:
app: win-webserver
type: LoadBalancer
apiVersion: v1
kind: Service
metadata:name: win-webserver
labels:app: win-webserver
spec:ports:# the port that this service should serve on-port:80targetPort:80selector:app: win-webserver
type: LoadBalancer
Copy to ClipboardCopied!Toggle word wrapToggle overflow