Skip to content

Instantly share code, notes, and snippets.

@armory-gists
armory-gists / spinnakerservice.yml
Last active March 24, 2021 15:44
Gists for Operator docs
# this is the top few lines from github.com/armory/spinnaker-operator/master/deploy/spinnaker/complete/spinnakerservice.yml
apiVersion: spinnaker.io/v1alpha2 # this is the Spinnaker Operator version
kind: SpinnakerService
metadata:
name: spinnaker
spec:
# spec.spinnakerConfig - This section is how to specify configuration spinnaker
spinnakerConfig:
# spec.spinnakerConfig.config - This section contains the contents of a deployment found in a halconfig .deploymentConfigurations[0]
config:
@armory-gists
armory-gists / agent-plugin-cloudriver-plugin.yaml
Last active December 4, 2020 20:06
Files for configuring mTLS in the Armory Agent for Kubernetes
apiVersion: spinnaker.armory.io/v1alpha2
kind: SpinnakerService
metadata:
name: spinnaker
spec:
spinnakerConfig:
profiles:
clouddriver:
spinnaker:
extensibility:
@armory-gists
armory-gists / create-pacrd-mtls-cert.sh
Created October 27, 2020 16:27
Script to generate PaCRD certificate, key, and password files for mTLS
#!/bin/bash
# This function creates a new password
newPassword() {
echo $(openssl rand -base64 32)
}
# Add metadata for host spin-svc.namespace
print_san() {
local svc
@armory-gists
armory-gists / SpinnakerService-Plugins.yml
Last active March 16, 2021 17:17
SpinnakerService.yml file configured to deploy the pf4jStagePlugin pf4j-deploy-example.md
apiVersion: spinnaker.armory.io/v1alpha2
kind: SpinnakerService
metadata:
name: spinnaker
spec:
# spec.spinnakerConfig - This section is how to specify configuration spinnaker
spinnakerConfig:
# spec.spinnakerConfig.config - This section contains the contents of a deployment found in a halconfig .deploymentConfigurations[0]
config:
version: 2.24 # the version of Spinnaker to be deployed
@armory-gists
armory-gists / SpinnakerService.yml
Last active December 1, 2020 19:57
SpinnakerService.yml for deploying Armory to K3s using the Armory Operator (basic mode)
apiVersion: spinnaker.armory.io/v1alpha2
kind: SpinnakerService
metadata:
name: spinnaker
spec:
# spec.spinnakerConfig - This section is how to specify configuration spinnaker
spinnakerConfig:
# spec.spinnakerConfig.config - This section contains the contents of a deployment found in a halconfig .deploymentConfigurations[0]
config:
version: 2.21.2 # the version of Spinnaker to be deployed
#!/bin/bash
# This script download a version of Armory's BOM to a local directory
# Usage: download.sh <version name> <destination path>
# Prerequisites:
# - aws cli: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
# - access to public s3 installed (no need for credentials)
# - write access to the destination path
# - yq: a portable command-line YAML processor