This add-on configures nops-k8s-agent. Worker contains database to keep users entries and pulls metadata from their accounts on a scheduled basis.
Create a Secret for nops-k8s-agent with following values in it:
nops_api_keyaws_account_id
To learn how to create the nops_api_key, see nOps API Key.
The aws_account_id refers to your AWS account number that is configured within nOps.
Note: Currently the agent does not support signature verification.
The following is an example of Secret Manifest Reference:
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: nops-k8s-agent
namespace: <same as nops-k8s-agent installation>
data:
nops_api_key: YWRtaW4=
aws_account_id: MWYyZDFlMmU2N2Rm
| Name | Version |
|---|---|
| terraform | >= 1.0.0 |
| aws | >= 3.72 |
| helm | >= 2.4.1 |
| kubernetes | >= 2.10 |
You can use your own Prometheus instance or you can launch your nops-k8s-agent namespace directly:
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm install prometheus prometheus-community/kube-prometheus-stack
To use your own Prometheus instance, use the deployed prometheus url in app_prometheus_server_endpoint variable.
| Name | Version |
|---|---|
| aws | >= 3.72 |
| Name | Source | Version |
|---|---|---|
| helm_addon | ../helm-addon | n/a |
| Name | Type |
|---|---|
| kubernetes_secret.nops_secrets | resource |
| aws_eks_cluster.eks | data source |
| aws_region.current | data source |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| addon_context | Input configuration for the addon | object({ |
n/a | yes |
| helm_config | Helm Config for nops. | any |
{} |
no |
| manage_via_gitops | Determines if the add-on should be managed via GitOps. | bool |
false |
no |
| app_nops_k8s_collector_api_key | API Key of nOps | string |
"" |
yes |
| app_prometheus_server_endpoint | Prometheus server endpoint | string |
"" |
yes |
| app_nops_k8s_agent_clusterid | NOPS agent cluster id | any |
{} |
yes |
| app_nops_k8s_k8s_collector_skip_ssl | NOPS collector aws account number | any |
{} |
yes |
| app_nops_k8s_k8s_agent_prom_token | App nops agent prometheus token | any |
{} |
yes |
| Name | Description |
|---|---|
| argocd_gitops_config | Configuration used for managing the add-on with ArgoCD |