uds-capability-redis

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0

README

uds-capability-redis

Bigbang Redis deployed via flux by zarf

Deployment Prerequisites

Resources
  • Minimum compute requirements for single node deployment are at LEAST 64 GB RAM and 32 virtual CPU threads (aws m6i.8xlarge instance type should do)
  • k3d installed on machine
General
  • This capability uses the Zarf variable APP to create the namespace ${APP}-redis. APP defaults to app.
  • For example, if you want to create a redis instance for gitlab to use you can set the deploy time Zarf variable APP to gitlab. This will create the namespace gitlab-redis and will create those resources there.
  • Whatever is set for APP will also be used to configure network policies to allow ingress from the APP namespace
  • Look at the zarf-config.yaml in this project for an example of how to set this variable.

Deploy

Use zarf to login to the needed registries i.e. registry1.dso.mil
# Download Zarf
make build/zarf

# Login to the registry
set +o history

# registry1.dso.mil (To access registry1 images needed during build time)
export REGISTRY1_USERNAME="YOUR-USERNAME-HERE"
export REGISTRY1_TOKEN="YOUR-TOKEN-HERE"
echo $REGISTRY1_TOKEN | build/zarf tools registry login registry1.dso.mil --username $REGISTRY1_USERNAME --password-stdin

set -o history
Build and Deploy Everything via Makefile and local package
# This will run make build/all, make cluster/reset, and make deploy/all. Follow the breadcrumbs in the Makefile to see what and how its doing it.
make all

Declare This Package In Your UDS Bundle

Below is an example of how to use this projects zarf package in your UDS Bundle

kind: UDSBundle
metadata:
  name: example-bundle
  description: An Example UDS Bundle
  version: 0.0.1
  architecture: amd64

zarf-packages:
  # Redis
  - name: redis
    repository: ghcr.io/defenseunicorns/uds-capability/redis
    ref: x.x.x

Directories

Path Synopsis
test
e2e/terratest/teststructure
Package teststructure is customized test-structure code based on https://github.com/gruntwork-io/terratest/tree/5913a2925623d3998841cb25de7b26731af9ab13 that fixes the issue identified in https://github.com/gruntwork-io/terratest/issues/1135
Package teststructure is customized test-structure code based on https://github.com/gruntwork-io/terratest/tree/5913a2925623d3998841cb25de7b26731af9ab13 that fixes the issue identified in https://github.com/gruntwork-io/terratest/issues/1135
e2e/types
Package types contains the types that are used in the e2e tests
Package types contains the types that are used in the e2e tests
e2e/utils
Package utils contains helper functions for the e2e tests
Package utils contains helper functions for the e2e tests

Jump to

Keyboard shortcuts

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