You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: saasbase
- namespace: kube-<NAMESPACES>
- spec:
-
- selector:
- matchLabels:
- app: saasbase
- replicas: 1
- template:
- metadata:
- labels:
- app: saasbase
- spec:
- containers:
- - image: 10.2.1.24:10242/bpa/saasbase:<BUILD_TAG>
- imagePullPolicy: IfNotPresent
- name: saasbase
- env:
- - name: branch
- value: <BRANCH_NAME>
- - name: TZ
- value: Asia/Shanghai
- ports:
- - containerPort: 80
- protocol: TCP
- volumeMounts:
- - mountPath: "/app/appsettings.json"
- name: saasbase-config
- readOnly: true
- subPath: appsetting
- - mountPath: "/etc/localtime"
- name: timezone
- resources:
- requests:
- cpu: "100m"
- memory: "112Mi"
- limits:
- cpu: "500m"
- memory: "512Mi"
- volumes:
- - name: saasbase-config
- configMap:
- name: saasbase-config
- - name: timezone
- hostPath:
- path: /usr/share/zoneinfo/Asia/Shanghai
- ---
- kind: Service
- apiVersion: v1
- metadata:
- labels:
- app: saasbase
- name: saasbase
- namespace: kube-<NAMESPACES>
- spec:
- type: ClusterIP
- ports:
- - port: 80
- name: http
- selector:
- app: saasbase
|