添加 'Yaml文件/nginx.yaml'
This commit is contained in:
parent
d5ccfa08c4
commit
40a0bb49c8
|
@ -0,0 +1,84 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
annotations: {}
|
||||||
|
labels:
|
||||||
|
k8s.kuboard.cn/name: test
|
||||||
|
name: test
|
||||||
|
namespace: default
|
||||||
|
resourceVersion: '397590'
|
||||||
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
replicas: 1
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s.kuboard.cn/name: test
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 25%
|
||||||
|
maxUnavailable: 25%
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
k8s.kuboard.cn/name: test
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: >-
|
||||||
|
10.9.12.201/xingdian/nginx@sha256:d2b2f2980e9ccc570e5726b56b54580f23a018b7b7314c9eaff7e5e479c78657
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
name: nginx
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
resources: {}
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /usr/share/nginx/html
|
||||||
|
name: volume-j2ijw
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
securityContext: {}
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
volumes:
|
||||||
|
- name: volume-j2ijw
|
||||||
|
nfs:
|
||||||
|
path: /opt/xingdiancloud_1
|
||||||
|
server: 10.9.12.250
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
annotations: {}
|
||||||
|
labels:
|
||||||
|
k8s.kuboard.cn/name: test
|
||||||
|
name: test
|
||||||
|
namespace: default
|
||||||
|
resourceVersion: '397893'
|
||||||
|
spec:
|
||||||
|
clusterIP: 10.99.28.173
|
||||||
|
clusterIPs:
|
||||||
|
- 10.99.28.173
|
||||||
|
externalTrafficPolicy: Cluster
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
ipFamilyPolicy: SingleStack
|
||||||
|
ports:
|
||||||
|
- name: xbcbcp
|
||||||
|
nodePort: 30009
|
||||||
|
port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
k8s.kuboard.cn/name: test
|
||||||
|
sessionAffinity: None
|
||||||
|
type: NodePort
|
||||||
|
|
Loading…
Reference in New Issue