-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add localstack to reference implementation #248
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,9 @@ data: | |
reload | ||
loadbalance | ||
} | ||
localhost.localstack.cloud:53 { | ||
errors | ||
cache 30 | ||
forward . 10.96.100.10 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: aws.crossplane.io/v1beta1 | ||
kind: ProviderConfig | ||
metadata: | ||
name: localstack | ||
annotations: | ||
argocd.argoproj.io/sync-wave: "20" | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
spec: | ||
credentials: | ||
source: Secret | ||
secretRef: | ||
namespace: crossplane-system | ||
name: local-secret | ||
key: creds | ||
endpoint: | ||
hostnameImmutable: true | ||
url: | ||
type: Static | ||
static: http://localhost.localstack.cloud:4566 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: localstack | ||
namespace: argocd | ||
labels: | ||
example: ref-implementation | ||
spec: | ||
project: default | ||
source: | ||
repoURL: cnoe://localstack | ||
targetRevision: HEAD | ||
path: "." | ||
destination: | ||
namespace: localstack | ||
server: "https://kubernetes.default.svc" | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: localstack | ||
|
||
helmCharts: | ||
- name: localstack | ||
valuesInline: | ||
debug: true | ||
extraEnvVars: | ||
- name: DEFAULT_REGION | ||
value: "us-east-1" | ||
dnsPolicy: "Default" | ||
service: | ||
type: ClusterIP | ||
# Coredns needs a static IP to refer to for delegation | ||
clusterIP: 10.96.100.10 | ||
# this effectively disables the external service ports, which can be used for OpenSearch and a few other services | ||
# these don't play well with the services kustomize patch at this point | ||
# see https://docs.localstack.cloud/references/external-ports/ for more details | ||
externalServicePorts: | ||
start: 4510 | ||
end: 4510 | ||
dnsService: true | ||
releaseName: localstack | ||
repo: 'https://localstack.github.io/helm-charts' | ||
version: 0.6.12 | ||
|
||
patches: | ||
- path: service-patch.yaml |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: localstack | ||
spec: | ||
ports: | ||
- name: edge | ||
port: 4566 | ||
targetPort: 4566 | ||
- name: dns-tcp | ||
port: 53 | ||
targetPort: 53 | ||
protocol: TCP | ||
- name: dns-udp | ||
port: 53 | ||
targetPort: 53 | ||
protocol: UDP |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is generated. Changes should be made to https://github.com/cnoe-io/idpbuilder/blob/main/hack/argo-cd/argocd-cm.yaml Then run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible to re-write instead of pointing to a static IP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#configuration-of-stub-domain-and-upstream-nameserver-using-coredns
see:
I'd rather point at the service, but that's apparently not an option, which is why I went the ClusterIP route.