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