data-store

command module
v0.0.0-...-3ec3138 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 10 Imported by: 0

README

data store

Purpose

The data-store server pod subscribes touring log, then compress to gzip and store to AWS S3.

Initialization

Create sealed secret manifest of mqtt client certificate and AWS credential

Store credential to file. Then, Remove command history from ~/.bash_history.

echo -n 'foo' > access_key_id.txt
echo -n 'bar' > secret_access_key.txt
echo -n 'baz' > bucket.txt

Install kubeseal cli and create controller resource. github Create sealed secret manifest from certificate.

kubectl create secret -n data-store generic data-store-credential \
  --from-file=access_key_id=./access_key_id.txt \
  --from-file=secret_access_key=./secret_access_key.txt \
  --from-file=bucket=./bucket.txt \
  -o yaml --dry-run=client >secret1.yml
kubeseal -o yaml <secret1.yml >sealedsecret1.yml
rm secret1.yml access_key_id.txt secret_access_key.txt bucket.txt
kubectl create secret -n data-store generic mqtt-client-certificate \
  --from-file=ca.crt \
  --from-file=client.crt \
  --from-file=client.key \
  -o yaml --dry-run=client >secret2.yml
kubeseal -o yaml <secret2.yml >sealedsecret2.yml
rm secret2.yml

Copy sealed secret manifest to data_store manifest

Copy sealed secret manifest to the part of data_store.yml.

Usage

Apply data_store.yml and execute pub/sub command.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
domain
infrastructure
interfaces
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL