- Kubernetes version: 1.9+
- Kubectl has been installed on the client
- You can use
kubectl auth can-iif you have authorization for the following operations:- create secrets
- create deployments
- create configmaps
- create namespaces
- create StatefulSet
- create Service
Before install, you have to make sure the helm is available. Follow this guide to install helm.
-
Add and update helm chart repo for
Dongtai Iasthelm repo add dongtai https://charts.dongtai.io/iast helm repo update -
Need to specify your
storageclass, or specify a public writepvc--set storage.storageClassName=storageclass or --set storage.persistentVolumeClaim=pvc (will be enabled by default) Or do not use the storage class, will affect the use of some features, such as (agent log page collection) --set storage.persistentVolumeClaim=null -
Install
helm install project --create-namespace -n dongtai dongtai/dongtai-iast \ --set storage.persistentVolumeClaim=nullThis command will deploy dongtai servers in dongtai namespace and expose service with
ClusterIP.
If you want to modify the configuration of mysql and Redis,you can overwrite the values by your own file,Suppose you have a file in /tmp/my-values.yml with values as follow:
skipMysql: true
mysql:
host: my-dongtai-mysql
port: 3306
name: my-dongtai_webapi
user: root
password: my-dongtai-iast
skipRedis: true
redis:
host: my-dongtai-redis
port: 6379
password: 123456
db: 0helm install project --create-namespace -n dongtai dongtai/dongtai-iast --values /tmp/my-values.yamlYou can also pass in a single value using --set, for example, you can switch defalut access type ClusterIP to NodePort
helm install project --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=null \
--set accessType=NodePort --set NodePort=30080 \
--set tag=1.9.0If you need to modify somaxconn (128)
helm install project --create-namespace -n dongtai dongtai/dongtai-iast \
--set storage.persistentVolumeClaim=null \
--set somaxconn=1024
Avaliable values:
skipMysql: false (default) skipRedis: false (default) accessType: ClusterIP(default), Options: ClusterIP,NodePort,LoadBalancer imageVersion: latest (default) logging_level: INFO (default)
helm uninstall project -n dongtai
With kubectl scale command, you can scale dongtai deployment to your desire count.
kubectl scale deployments ${deployment-names} --replicas=${count} -n ${your-namespace}
If you need the yaml file to be deployed directly, please use the following command to export
helm install --dry-run project -n default dongtai/dongtai-iast
