代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。