From bed5468a75e13694e7a47357e21bdb75d6988348 Mon Sep 17 00:00:00 2001 From: Moshe Immermam Date: Tue, 9 Jul 2024 08:18:26 +0300 Subject: [PATCH] chore: build fixes --- .../docs/installation/_helm_install.mdx | 112 ------------------ .../docs/installation/saas/eks.mdx | 13 +- .../docs/installation/self-hosted/eks.mdx | 46 +------ mission-control/docs/reference/helm/agent.mdx | 9 ++ mission-control/docs/reference/helm/index.mdx | 3 + .../docs/reference/helm/mission-control.mdx | 59 +++++++++ 6 files changed, 73 insertions(+), 169 deletions(-) delete mode 100644 mission-control/docs/installation/_helm_install.mdx create mode 100644 mission-control/docs/reference/helm/agent.mdx create mode 100644 mission-control/docs/reference/helm/index.mdx create mode 100644 mission-control/docs/reference/helm/mission-control.mdx diff --git a/mission-control/docs/installation/_helm_install.mdx b/mission-control/docs/installation/_helm_install.mdx deleted file mode 100644 index 834d96df..00000000 --- a/mission-control/docs/installation/_helm_install.mdx +++ /dev/null @@ -1,112 +0,0 @@ -import CodeBlock from '@theme/CodeBlock' -import CopyButton from '@theme/CodeBlock/CopyButton' -import Properties from './_properties.mdx' - - - - - -<> -
-    
-      helm repo add flanksource  https://flanksource.github.io/charts \
-      helm repo update \
-      helm install mission-control flanksource/mission-control \
-      --set global.ui.host=
-      -n mission-control
-      --create-namespace
-      --wait
-    
-  
- - - - - {"helm repo add flanksource\n https://flanksource.github.io/charts \n helm repo update \n helm install mission-control flanksource/mission-control \n "} - - {" -n mission-control --create-namespace --wait"} - - - -```bash -helm repo add flanksource https://flanksource.github.io/charts -helm repo update -helm install {mission-control} \ - flanksource/mission-control \ - --set global.ui.host=DOMAIN NAME --n mission-control \ - --create-namespace \ - --wait -``` - -
- - -```yaml -apiVersion: v1 -kind: Namespace -metadata: - name: mission-control-agent ---- -apiVersion: source.toolkit.fluxcd.io/v1beta1 -kind: HelmRepository -metadata: - name: flanksource - namespace: mission-control-agent -spec: - interval: 5m0s - url: https://flanksource.github.io/charts ---- -apiVersion: helm.toolkit.fluxcd.io/v2beta1 -kind: HelmRelease -metadata: - name: mission-control - namespace: mission-control-agent -spec: - chart: - spec: - chart: mission-control-agent - sourceRef: - kind: HelmRepository - name: flanksource - namespace: mission-control-agent - interval: 1m - values: - upstream: - createSecret: true - host: https://app.flanksource.com - username: token - agentName: non-prod - password: #---------------- -``` - - -
- -The default username is `admin@local` and the password can be retrived with: - -```bash -kubectl get secret mission-control-admin-password \ - -n mission-control \ - --template='{{.data.password | base64decode}}' -``` - -
-You can add annotations to the ingress to have cert-manager generate TLS certificates: - -```yaml -flanksource-ui: - ingress: - annotations: - kubernetes.io/ingress.class: nginx - kubernetes.io/tls-acme: 'true' -``` - -
- -
-You can add annotations to the ingress to have cert-manager generate TLS certificates: - - - -
diff --git a/mission-control/docs/installation/saas/eks.mdx b/mission-control/docs/installation/saas/eks.mdx index f0a76562..c0ee8f57 100644 --- a/mission-control/docs/installation/saas/eks.mdx +++ b/mission-control/docs/installation/saas/eks.mdx @@ -5,7 +5,6 @@ slug: installation/eks import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -import HelmInstall from '../_helm_install.mdx' import AwsIam from "../_aws_iam.mdx" import Helm from "@site/src/components/Helm" @@ -28,16 +27,6 @@ To install and run Mission Control you need to have the following prerequisites: }}/> - - - - - - - - - - +## Next Steps Install the [AWS](/registry/aws) registry chart to configure the AWS Scraper - diff --git a/mission-control/docs/installation/self-hosted/eks.mdx b/mission-control/docs/installation/self-hosted/eks.mdx index 37473449..780a29ac 100644 --- a/mission-control/docs/installation/self-hosted/eks.mdx +++ b/mission-control/docs/installation/self-hosted/eks.mdx @@ -5,7 +5,6 @@ title: AWS EKS import AwsIam from "../_aws_iam.mdx" import Helm from "@site/src/components/Helm" import AdminPassword from '@site/docs/partials/_admin-password.mdx' -import HelmInstall from '../_helm_install.mdx' # Self Hosted Installation on AWS EKS @@ -23,50 +22,7 @@ To install and run Mission Control you need to have the following prerequisites: }}/> - - - - - - - - - - -
- - - -Mission Control can read the cost and usage reports stored in the S3 bucket and map it to the resources it discovers in your AWS environment. To achieve this, -1. Setup [Cost and Usage Reports](https://docs.aws.amazon.com/cur/latest/userguide/what-is-cur.html) and integrate it with [Athena](https://docs.aws.amazon.com/cur/latest/userguide/use-athena-cf.html) - -2. Modify the config db IAM role used by the config scraper above to give Mission Control the permissions to read the cost reports. Attach a Customer managed policy to the role with [this json policy document](https://github.com/flanksource/docs/blob/main/mission-control/docs/installation/resources/iam-policy.json) - -3. We also need to allow athena query executions - -Sample IAM Policy required for cost reporting: -```json title=athena-policy.json -{ - "Effect": "Allow", - "Action": [ - "athena:GetQueryExecution", - "athena:GetQueryResults", - "athena:StartQueryExecution" - ], - "Resource": "arn:aws:athena:eu-west-1:765618022540:workgroup/primary" -}, - -``` - - - -- Upgrade the helm chart to apply the changes - - - - - +## Next Steps Install the [AWS](/registry/aws) registry chart to configure the AWS Scraper - diff --git a/mission-control/docs/reference/helm/agent.mdx b/mission-control/docs/reference/helm/agent.mdx new file mode 100644 index 00000000..26126337 --- /dev/null +++ b/mission-control/docs/reference/helm/agent.mdx @@ -0,0 +1,9 @@ +--- +title: Mission Control Agent +--- + + +import Properties from '@site/docs/installation/_properties.mdx' + + + diff --git a/mission-control/docs/reference/helm/index.mdx b/mission-control/docs/reference/helm/index.mdx new file mode 100644 index 00000000..a7e3d4b1 --- /dev/null +++ b/mission-control/docs/reference/helm/index.mdx @@ -0,0 +1,3 @@ +--- +title: Helm +--- diff --git a/mission-control/docs/reference/helm/mission-control.mdx b/mission-control/docs/reference/helm/mission-control.mdx new file mode 100644 index 00000000..327dadf1 --- /dev/null +++ b/mission-control/docs/reference/helm/mission-control.mdx @@ -0,0 +1,59 @@ +--- +title: Mission Control +--- +import Properties from '@site/docs/installation/_properties.mdx' + + + +export const toc = [ + { + value: "Mission Control", + id: "mission-control", + level: 2, + }, + { + value: "Canary Checker", + id: "canary-checker", + level: 3, + }, + { + value: "Config DB", + id: "config-db", + level: 3, + }, + { + value: "Authentication", + id: "authentication", + level: 2, + }, + + { + value: "Ingress", + id: "ingress", + level:2, + }, + { + value: "Database", + id: "database", + level: 2, + }, + { + value: "Custom postgres.conf", + id: "updating-postgresconf-settings", + level: 3, + }, + { + value: "Using an External DB", + id: "using-an-external-database", + level: 3, + }, + + + + + +] + +## Mission Control + +