1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: meiku
- labels:
- app: meiku
- spec:
- selector:
- app: meiku
- ports:
- - port: 8080
- targetPort: 8080
- name: server-port
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: meiku
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: meiku
- template:
- metadata:
- labels:
- app: meiku
- spec:
- imagePullSecrets:
- - name: persagy
- containers:
- - name: meiku
- image: labisenlin.persagy.com/library/meiku:develop-fbcc3cd
- imagePullPolicy: Always
- ports:
- - containerPort: 8080
- name: server-port
- env:
- - name: TZ
- value: Asia/Shanghai
- resources:
- limits:
- memory: 4Gi
- requests:
- memory: 1Gi
- volumeMounts:
- - name: admpath
- mountPath: /usr/local/tomcat/webapps/ROOT/WEB-INF/classes/application.yml
- subPath: path/to/application.yml
- volumes:
- - name: admpath
- configMap:
- name: meiku
- defaultMode: 511
- items:
- - key: application.yml
- path: path/to/application.yml
|