123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- apiVersion: v1
- kind: Service
- metadata:
- name: cloud-yysj-login-authentication
- labels:
- app: cloud-yysj-login-authentication
- svcEndpoints: actuator
- spec:
- type: ClusterIP
- ports:
- - name: server
- nodePort: 31001
- port: 8080
- targetPort: 8080
- - name: management
- nodePort: 31002
- port: 8081
- targetPort: 8081
- selector:
- app: cloud-yysj-login-authentication
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: cloud-yysj-login-authentication
- labels:
- app: cloud-yysj-login-authentication
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: cloud-yysj-login-authentication
- template:
- metadata:
- name: cloud-yysj-login-authentication
- labels:
- app: cloud-yysj-login-authentication
- spec:
- restartPolicy: Always
- containers:
- - name: service-provider
- image: hub.i139.cn/cloud-yysj/cloud-yysj-login-authentication:1.0.0
- imagePullPolicy: IfNotPresent
- ports:
- - name: server
- containerPort: 8080
- - name: management
- containerPort: 8081
- env:
- - name: KUBERNETES_NAMESPACE
- valueFrom:
- fieldRef:
- fieldPath: metadata.namespace
- - name: POD_NAME
- valueFrom:
- fieldRef:
- fieldPath: metadata.name
- - name: JAVA_OPTS
- value: ""
- - name: APP_OPTS
- value: ""
- resources:
- limits:
- memory: 1000Mi
- cpu: 2000m
- requests:
- memory: 256Mi
- cpu: 1000m
- readinessProbe:
- initialDelaySeconds: 20
- periodSeconds: 5
- timeoutSeconds: 10
- failureThreshold: 5
- httpGet:
- path: /actuator/health
- port: 8081
- livenessProbe:
- initialDelaySeconds: 60
- periodSeconds: 5
- timeoutSeconds: 5
- failureThreshold: 3
- httpGet:
- path: /actuator/health
- port: 8081
|