k8s + spring boot 部署配置 ## YAML Template. --- #not work apiVersion: apps/v1 apiVersion: extensions/v1beta1 kind: Deployment metadata: name: oms-deploy-dev spec: replicas: 1 template: metadata: labels: app: oms-dev spec: imagePullSecrets: - name: tencent-sss-docker containers: - name: oms imagePullPolicy: Always image: ccr.ccs.tencentyun.com/sss/oms:latest env: - name: SPRING_PROFILES_ACTIVE value: dev ports: - containerPort: 80 livenessProbe: httpGet: path: /actuator/health port: 80 scheme: HTTP initialDelaySeconds: 60 timeoutSeconds: 2 successThreshold: 1 failureThreshold: 5 readinessProbe: httpGet: path: /actuator/health port: 80 scheme: HTTP initialDelaySeconds: 30 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 5 --- kind: Service apiVersion: v1 metadata: name: oms-service-dev spec: selector: app: oms-dev ports: - protocol: TCP port: 80 targetPort: 80 type: NodePort --- #balancer + ingress ok apiVersion: extensions/v1beta1 kind: Ingress metadata: annotations: description: ddddd kubernetes.io/ingress.class: qcloud ##后台查到的 # qcloud_cert_id: JIUrBtas name: miniapp-dev-ingress namespace: default spec: rules: - host: miniapp-dev.test.com http: paths: - backend: serviceName: oms-service-dev servicePort: 80 path: / tls: - secretName: miniapp-dev-ingress status: loadBalancer: ingress: # - ip: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 ## YAML Template.---#not work apiVersion: apps/v1apiVersion: extensions/v1beta1kind: Deploymentmetadata: name: oms-deploy-devspec: replicas: 1 template: metadata: labels: app: oms-dev spec: imagePullSecrets: - name: tencent-sss-docker containers: - name: oms imagePullPolicy: Always image: ccr.ccs.tencentyun.com/sss/oms:latest env: - name: SPRING_PROFILES_ACTIVE value: dev ports: - containerPort: 80 livenessProbe: httpGet: path: /actuator/health port: 80 scheme: HTTP initialDelaySeconds: 60 timeoutSeconds: 2 successThreshold: 1 failureThreshold: 5 readinessProbe: httpGet: path: /actuator/health port: 80 scheme: HTTP initialDelaySeconds: 30 timeoutSeconds: 5 successThreshold: 1 failureThreshold: 5 --- kind: ServiceapiVersion: v1metadata: name: oms-service-devspec: selector: app: oms-dev ports: - protocol: TCP port: 80 targetPort: 80 type: NodePort---#balancer + ingress ok apiVersion: extensions/v1beta1kind: Ingressmetadata: annotations: description: ddddd kubernetes.io/ingress.class: qcloud ##后台查到的# qcloud_cert_id: JIUrBtas name: miniapp-dev-ingress namespace: defaultspec: rules: - host: miniapp-dev.test.com http: paths: - backend: serviceName: oms-service-dev servicePort: 80 path: / tls: - secretName: miniapp-dev-ingressstatus: loadBalancer: ingress:# - ip: … Read More
k8s 删除 pod 成功后 还是显示 status Terminating 问题: k8s 删除不了 pod 删除成功,但是 kubectl get pod 还是显示 status Te… Read More
k8s service loadBalancer ip 如何指定 问题: 解决: YAML status: loadBalancer: ingress: - ip: 111.230.208.140 1234 status: loadBalancer: ingress: - ip: 111.230.208.140 … Read More
spring boot 调整文件上传大小。Springboot单文件上传大小限制 FileUploadBase$FileSizeLimitExceededException: https://blog.csdn.net/kcp606/article/details/78313293 &… Read More