惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
量子位
Martin Fowler
Martin Fowler
月光博客
月光博客
P
Proofpoint News Feed
博客园_首页
Y
Y Combinator Blog
I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
H
Help Net Security
U
Unit 42
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - shiningrise

Admin.NET开源版微服务改造记录 基于openspec-cn的SDD规范驱动开发实战 osharp集成Yitter.IdGenerator并实现分布式ID osharp多租户方案 deepseek本地部署简要教程 WinForm 直接运行 Admin.NET 在 ASP.NET Core 中创建 gRPC 客户端和服务器 Refit使用入门 Ocelot集成Consul实现api网关与服务发现 docker私有注册表 dotnet微服务之API网关Ocelot Abp源码分析之Serilog日志 Abp源码分析之虚拟文件系统Volo.Abp.VirtualFileSystem Abp源码分析之Abp本地化 Abp源码分析之Abp最小系统 类似hbuildx的软件 魔法商店题解 阿里k8s负载均衡型服务加证书方法 python远程登录Admin.NET
k8s配置文件
shiningrise · 2024-10-10 · via 博客园 - shiningrise
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    app: web
  name: web
spec:
  replicas: 1
  selector:
    matchLabels:
      app: web
  strategy: {}
  template:
    metadata:
      creationTimestamp: null
      labels:
        app: web
    spec:
      containers:
      - image: registry.cn-hangzhou.aliyuncs.com/shiningrise/nginx:1.22.1
        name: nginx
        resources: {}
status: {}

---
apiVersion: v1
kind: Service
metadata:
  name: my-nodeport-service
  labels:
    app: web
spec:
  type: NodePort
  selector:
    app: web
  ports:
  - name: http
    port: 80
    targetPort: 80
    nodePort: 30001  # 可选,如果没有指定,Kubernetes 会自动分配