Skip to content

Commit

Permalink
update service type and annfinity
Browse files Browse the repository at this point in the history
  • Loading branch information
wb-wc495872 committed Mar 1, 2024
1 parent c8a58d1 commit 530defb
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
- key: kubernetes.io/hostname
operator: In
values:
- master
tolerations:
- key: node-role.kubernetes.io/control-plane
operator: Exists
Expand Down
9 changes: 7 additions & 2 deletions deploy/helm/lunettes/templates/filebeat/filebeat-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,18 @@ spec:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: # 硬策略
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
- key: kubernetes.io/hostname
operator: In
values:
- master
volumes:
- configMap:
defaultMode: 420
Expand Down
11 changes: 0 additions & 11 deletions deploy/helm/lunettes/templates/lunettes/lunettes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,6 @@ spec:
resources:
{{ toYaml .Values.lunettesResources | indent 10 }}
serviceAccountName: lunettes-sa
tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: # 硬策略
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
volumes:
- hostPath:
path: {{ .Values.lunettesLogsHostPath }}
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/lunettes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ lunettesImage: lunettes/lunettes:latest
lunettesNodeport: 30880
lunettesLogsPath: /logs
lunettesLogsHostPath: /home/var/logs/lunettes
lunettesType: LoadBalancer
lunettesType: NodePort
apiserverEnabled: true
traceEnable: false
lunettesResources:
Expand Down
38 changes: 13 additions & 25 deletions docs/quick_start.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@

## Dependency

1. [install Docker](https://docs.docker.com/get-docker/)
2. [kubectl](https://kubernetes.io/docs/tasks/tools/)
3. [Installing Helm](https://helm.sh/docs/intro/install/)

# Deploy Lunettes with kind quickly

[kind](https://kind.sigs.k8s.io/)
## Dependency

1. [kind](https://kind.sigs.k8s.io/)
2. [install Docker](https://docs.docker.com/get-docker/)
3. [kubectl](https://kubernetes.io/docs/tasks/tools/)
4. [Installing Helm](https://helm.sh/docs/intro/install/)

## Running local Kubernetes clusters

Expand All @@ -22,20 +19,15 @@ kind create cluster \
--config ./hack/kind.yaml
```

# Deploy Lunettes with kind quickly

[minikube](https://minikube.sigs.k8s.io/docs/start/)

## Running Kubernetes v1.22.2

```bash
minikube start --kubernetes-version=v1.22.2
```

## Deploy Lunettes with helm

```bash
helm install lunettes oci://registry-1.docker.io/lunettes/lunettes-chart --version [version] --set enableAuditApiserver=true
helm install lunettes oci://registry-1.docker.io/lunettes/lunettes-chart --version [version] \
--set enableAuditApiserver=true \
--set lunettesType=NodePort \
--set grafanadiType=NodePort \
--set grafanaType=NodePort \
--set jaegerType=NodePort
```
see available [version](https://hub.docker.com/r/lunettes/lunettes-chart/tags)

Expand All @@ -45,7 +37,7 @@ see available [version](https://hub.docker.com/r/lunettes/lunettes-chart/tags)
kubectl run nginx --image=nginx
```

## Visit(deploy by kind)
## Visit

Open broswer to visit
- lunettes
Expand All @@ -56,8 +48,4 @@ Open broswer to visit
- debugslo: [http://localhost:9097/d/lunettes-debugslo/lunettes-debugslo?orgId=1](http://localhost:9097/d/lunettes-debugslo/lunettes-debugslo?orgId=1)
- jaejer: [http://localhost:9095/search](http://localhost:9095/search)
- kibana: [http://localhost:9092](http://localhost:9092)
- prometheus: [http://localhost:9091/graph?](http://localhost:9091/graph?)

## Visit(deploy by minikube)

- minikube service grafana -n lunettes (The default username and password are admin/admin)
- prometheus: [http://localhost:9091/graph?](http://localhost:9091/graph?)

0 comments on commit 530defb

Please sign in to comment.