apiVersion: apps/v1beta2 # for versions before 1.8.0 use apps/v1beta1 kind: Deployment metadata: name: anxinyun-camunda-workflow namespace: anxinyun labels: app: cwprocess spec: selector: matchLabels: app: cwprocess replicas: 1 template: metadata: labels: app: cwprocess spec: containers: - name: anxinyun-camunda-workflow image: repository.anxinyun.cn/anxinyun/camunda-workflow:dragon.1 command: [ "java", "-jar", "camunda-service.jar" ] args: [ "--spring.datasource.driver-class-name=org.postgresql.Driver","--spring.datasource.url=jdbc:postgresql://10.8.30.39:5432/camunda","--spring.datasource.username=FashionAdmin","--spring.datasource.password=123" ] volumeMounts: - name: hostfile mountPath: /etc/hosts - name: localtime mountPath: /etc/localtime volumes: - name: hostfile hostPath: path: /etc/hosts - name: localtime hostPath: path: /etc/localtime imagePullSecrets: - name: anxinsecret --- apiVersion: v1 kind: Service metadata: name: anxinyun-camunda-workflow labels: app: cwprocess namespace: anxinyun spec: type: ClusterIP ports: - port: 19094 targetPort: 8080 selector: app: cwprocess externalIPs: - 10.8.30.157