提交 88a8cbf9 作者: 杨大同

增加新文件

上级 bd3e233c
```yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: APPNAME-ing
namespace: pred
labels:
ing: APPNAME-ing
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- host: DOMAIN.allhome.com.cn
http:
paths:
- backend:
serviceName: APPNAME-svc
servicePort: CONPORT
tls:
- secretName: allhome-tls
---
apiVersion: v1
kind: Service
metadata:
name: APPNAME-svc
namespace: pred
labels:
svc: APPNAME-svc
spec:
clusterIP: None
ports:
- name: http
port: CONPORT
targetPort: 80
protocol: TCP
selector:
app: APPNAME
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: APPNAME
namespace: pred
labels:
deploy: APPNAME
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: APPNAME
template:
metadata:
name: APPNAME
namespace: pred
labels:
app: APPNAME
spec:
imagePullSecrets:
- name: regsecret
containers:
- name: APPNAME
image: registry-vpc.cn-beijing.aliyuncs.com/NAMESPACE/APPNAME:TAG
imagePullPolicy: Always
ports:
- name: http
containerPort: CONPORT
readinessProbe:
successThreshold: 1
failureThreshold: 3
tcpSocket:
port: CONPORT
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
failureThreshold: 3
successThreshold: 1
tcpSocket:
port: CONPORT
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
resources:
requests:
memory: "300Mi"
limits:
memory: "1024Mi"
```
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论