Skip to content

Commit

Permalink
refactor: update docs on split of cdk vs cdk8s
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Oct 19, 2023
1 parent c53b699 commit ff82269
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
8 changes: 5 additions & 3 deletions config/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Kubernetes configuration with CDK8s
# Kubernetes configuration with CDK8s and AWS-CDK

Collection of Kubernetes resources.
Collection of AWS & Kubernetes resources.

## Components

Main entry point: [app](./app.ts)
Main entry point: [cdk8s](./cdk8s.ts) and [cdk](./cdk.ts)

Generally all Kubernetes resources are defined with cdk8s and anything that needs AWS interactions such as service accounts are defined with CDK.

- argo - Argo workflows for use with [linz/topo-workflows](https://github.com/linz/topo-workflows)

Expand Down
11 changes: 8 additions & 3 deletions config/eks/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export class LinzEksCluster extends Stack {
configureEks(): void {
// Use fluent bit to ship logs from eks into aws
const fluentBitNs = this.cluster.addManifest('FluentBitNamespace', {
apiVersion: 'v1',
kind: 'Namespace',
metadata: { name: 'fluent-bit' },
});
Expand All @@ -90,12 +91,16 @@ export class LinzEksCluster extends Stack {
});
fluentBitSa.node.addDependency(fluentBitNs); // Ensure the namespace created first

// basic constructs for
const argoNs = this.cluster.addManifest('ArgoNameSpace', { kind: 'Namespace', metadata: { name: 'argo' } });
// Basic constructs for argo to be deployed into
const argoNs = this.cluster.addManifest('ArgoNameSpace', {
apiVersion: 'v1',
kind: 'Namespace',
metadata: { name: 'argo' },
});
const argoRunnerSa = this.cluster.addServiceAccount('ArgoRunnerServiceAccount', {
name: 'argo-runner-sa',
namespace: 'argo',
});
argoNs.node.addDependency(argoRunnerSa);
argoRunnerSa.node.addDependency(argoNs);
}
}

0 comments on commit ff82269

Please sign in to comment.