123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- ---
- apiVersion: apps.kruise.io/v1beta1
- #apiVersion: apps/v1
- kind: StatefulSet
- metadata:
- name: book-webview
- namespace: book-webview
- labels:
- app: book-webview
- spec:
- serviceName: book-webview
- replicas: 2
- selector:
- matchLabels:
- app: book-webview
- template:
- metadata:
- labels:
- app: book-webview
- spec:
- readinessGates:
- - conditionType: InPlaceUpdateReady
- terminationGracePeriodSeconds: 180
- dnsPolicy: ClusterFirstWithHostNet
- dnsConfig:
- nameservers:
- - 10.26.22.50
- - 223.5.5.5
- - 114.114.114.114
- initContainers:
- - name: init
- image: hub.evbj.easou.com/dev/busybox
- command: ['sh', "-c", 'chmod 777 -R /data && mkdir -p /data/project && mkdir -p /data/log']
- imagePullPolicy: IfNotPresent
- volumeMounts:
- - name: volume
- mountPath: /data
- - name: init-package
- image: hub.evbj.easou.com/dev/busybox
- command: ['sh', '-c', 'rm -rf /data/project/* && wget http://10.26.22.190/release/app-web/prod-64/esbookweb/1.5.413/esbookweb_1.5.413_kuaiDu3.15.4Dev_T1.5.412-179706_1.5.413_20220803-181844_RBL/ROOT.war -O /data/project/ROOT.war']
- imagePullPolicy: IfNotPresent
- volumeMounts:
- - name: volume
- mountPath: /data
- containers:
- - name: book-webview
- image: hub.evbj.easou.com/dev/book-webview:v3.1base
- imagePullPolicy: Always
- ports:
- - containerPort: 8080
- name: port
- volumeMounts:
- - name: volume
- mountPath: /data
- livenessProbe:
- tcpSocket:
- port: 8080
- initialDelaySeconds: 45
- periodSeconds: 15
- readinessProbe:
- tcpSocket:
- port: 8080
- initialDelaySeconds: 45
- periodSeconds: 15
- updateStrategy:
- type: RollingUpdate
- rollingUpdate:
- podUpdatePolicy: InPlaceIfPossible
- inPlaceUpdateStrategy:
- gracePeriodSeconds: 10
- volumeClaimTemplates:
- - metadata:
- name: volume
- spec:
- accessModes: ["ReadWriteOnce"]
- storageClassName: ceph-block
- resources:
- requests:
- storage: 200Gi
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: book-webview-svc
- namespace: book-webview
- labels:
- app: book-webview-svc
- spec:
- type: NodePort
- ports:
- - port: 8080
- targetPort: 8080
- nodePort: 38080
- selector:
- app: book-webview
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: book-webview-ingress
- namespace: book-webview
- spec:
- #tls:
- # - hosts:
- # - dev-book-webview.ieasou.cn
- # secretName: ieasou.cn
- rules:
- - host: book-webview-book-webview.ieasou.cn
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: book-webview-svc
- port:
- number: 8080
- ingressClassName: nginx
|