1 Star 0 Fork 0

coolops/cert-manager-webhook-alidns

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ingress-2.yaml 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
刘文龙 提交于 2019-09-18 17:24 . removed sensitive data
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demo-ingress-2
namespace: default
annotations:
certmanager.k8s.io/cluster-issuer: "letsencrypt-prod-2"
spec:
tls:
- hosts:
- '*.yourdomain2.com'
secretName: yourdomain2-com-tls
rules:
- host: www.yourdomain2.com
http:
paths:
- path: /
backend:
serviceName: nginx
servicePort: 80
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: nginx
labels:
component: nginx
spec:
replicas: 1
template:
metadata:
labels:
component: nginx
spec:
containers:
- name: nginx
image: nginx
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 0.25
limits:
cpu: 1
ports:
- containerPort: 80
name: http
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 20
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 20
timeoutSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
component: nginx
spec:
selector:
component: nginx
ports:
- name: http
port: 80
targetPort: 80
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/coolops/cert-manager-webhook-alidns.git
git@gitee.com:coolops/cert-manager-webhook-alidns.git
coolops
cert-manager-webhook-alidns
cert-manager-webhook-alidns
master

搜索帮助