Skip to content

add kubernets script and doc#149

Merged
tianxiaoliang merged 3 commits intoapache:masterfrom
alec-z:kubernetes_support
Aug 5, 2020
Merged

add kubernets script and doc#149
tianxiaoliang merged 3 commits intoapache:masterfrom
alec-z:kubernetes_support

Conversation

@alec-z
Copy link
Contributor

@alec-z alec-z commented Aug 3, 2020

- name: MONGODB_USER
value: kie
- name: MONGODB_PWD
value: '123'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

交付的应该是可按需配置的方案,所以应该提供install.sh脚本允许定制用户名密码这些配置

- name: MONGODB_PWD
value: '123'
- name: MONGODB_ADDR
value: localhost
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

db的地址不该是配死的,而是k8s service的name,通过name进行发现

- name: down-init-db-js
image: busybox
volumeMounts:
- name: mongo-init-pvs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PersistentVolumeClaim 应该缩写为pvc

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不是PersistentVolumeClaim,而是PersistentVolumeStorage, 简写pvs

- mongodb UI:http://127.0.0.1:8081
- servicecomb-kie: http://127.0.0.1:30110

### Run with Docker kubernetes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run on kubernetes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我改一下@tianxiaoliang

environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: kie
ME_CONFIG_MONGODB_ADMINPASSWORD: 123
ME_CONFIG_MONGODB_SERVER: mongo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个选项做了什么

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个是默认值,就是连mongo的service的host,原来的也能工作,只是不清晰。

@tianxiaoliang tianxiaoliang merged commit 4a7c53e into apache:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants