File tree Expand file tree Collapse file tree 3 files changed +85
-0
lines changed
Expand file tree Collapse file tree 3 files changed +85
-0
lines changed Original file line number Diff line number Diff line change 1+ # This sample shows basic usage of LocalStack and the operator.
2+ #
3+ # ## Requirements
4+ #
5+ # * Set up a secret with your auth token and the name `localstack-auth-token` with format `LOCALSTACK_AUTH_TOKEN=<token>`
6+ #
7+ # ```
8+ # kubectl create secret generic localstack-auth-token \
9+ # --from-literal=LOCALSTACK_AUTH_TOKEN="$LOCALSTACK_AUTH_TOKEN"
10+ # ```
11+ apiVersion : api.localstack.cloud/v1alpha1
12+ kind : LocalStack
13+ metadata :
14+ name : localstack
15+ spec :
16+ image : localstack/localstack-pro:latest
17+ dnsProvider : coredns
18+ dnsConfigName : coredns
19+ dnsConfigNamespace : kube-system
20+ envFrom :
21+ - secretRef :
22+ name : localstack-auth-token
23+
Original file line number Diff line number Diff line change 1+ # This sample shows basic usage of how to auto load cloud pods on startup
2+ #
3+ # ## Requirements
4+ #
5+ # * Set up a secret with your auth token and the name `localstack-auth-token` with format `LOCALSTACK_AUTH_TOKEN=<token>`
6+ #
7+ # ```
8+ # kubectl create secret generic localstack-auth-token \
9+ # --from-literal=LOCALSTACK_AUTH_TOKEN="$LOCALSTACK_AUTH_TOKEN"
10+ # ```
11+ #
12+ # * Create a cloud pod containing previously deployed resources
13+ apiVersion : api.localstack.cloud/v1alpha1
14+ kind : LocalStack
15+ metadata :
16+ name : localstack
17+ spec :
18+ image : localstack/localstack-pro:latest
19+ dnsProvider : coredns
20+ dnsConfigName : coredns
21+ dnsConfigNamespace : kube-system
22+ # TODO: add the name of your cloud pods here
23+ autoLoadPods : ["srw-single-bucket"]
24+ envFrom :
25+ - secretRef :
26+ name : localstack-auth-token
Original file line number Diff line number Diff line change 1+ # This sample shows basic usage of using hooks with LocalStack on startup
2+ #
3+ # ## Requirements
4+ #
5+ # * Set up a secret with your auth token and the name `localstack-auth-token` with format `LOCALSTACK_AUTH_TOKEN=<token>`
6+ #
7+ # ```
8+ # kubectl create secret generic localstack-auth-token \
9+ # --from-literal=LOCALSTACK_AUTH_TOKEN="$LOCALSTACK_AUTH_TOKEN"
10+ # ```
11+ apiVersion : v1
12+ kind : ConfigMap
13+ metadata :
14+ name : ready-localstack-hook
15+ data :
16+ create-bucket.sh : |
17+ #!/bin/bash
18+ echo "Running ready hook"
19+ echo "Setting up localstack"
20+ awslocal s3 mb s3://mybucket
21+ ---
22+ apiVersion : api.localstack.cloud/v1alpha1
23+ kind : LocalStack
24+ metadata :
25+ name : localstack
26+ spec :
27+ image : localstack/localstack-pro:latest
28+ dnsProvider : coredns
29+ dnsConfigName : coredns
30+ dnsConfigNamespace : kube-system
31+ envFrom :
32+ - secretRef :
33+ name : localstack-auth-token
34+ hooks :
35+ readyConfigName : ready-localstack-hook
36+
You can’t perform that action at this time.
0 commit comments