This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
repo_update: true | |
repo_upgrade: all | |
packages: | |
- curl | |
- httpie | |
- jq | |
- make | |
- screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kubectl | |
#source <(kubectl completion bash) | |
if [ -f /etc/rancher/k3s/k3s.yaml ]; then | |
export KUBECONFIG="~/.kube/config:/etc/rancher/k3s/k3s.yaml" | |
elif [ -f ~/.kube/config ]; then | |
export KUBECONFIG="~/.kube/config" | |
fi | |
alias k='kubectl' | |
alias kcc='kubectl config current-context' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"expectedArtifacts": [ | |
{ | |
"defaultArtifact": { | |
"artifactAccount": "docker-registry", | |
"id": "fa3d4608-d499-46f9-87d7-0da05c0a7bc2", | |
"name": "index.docker.io/alchen99/express-hello-world", | |
"reference": "index.docker.io/alchen99/express-hello-world:alpine-httpd-blue", | |
"type": "docker/image", | |
"version": "alpine-httpd-blue" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "Artifacts created with legacy artifacts UI (less than 1.19) ", | |
"expectedArtifacts": [ | |
{ | |
"defaultArtifact": { | |
"artifactAccount": "alchen99-git-helm-repo", | |
"id": "6f653e58-8d6c-4cb6-a10b-30fd08108ea6", | |
"name": "colors", | |
"type": "helm/chart", | |
"version": "0.1.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generate_ulid () { | |
# generate ulid for Spinnaker stats | |
curl -s https://ulidgenerator.com/ | sed -n '/class="js-ulid-result"/{n;p}' | sed -e 's/\(<[^<][^<]*>\)//g; /^$/d' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: spinnaker.armory.io/v1alpha2 | |
kind: SpinnakerService | |
metadata: | |
name: spinnaker # name doesn't matter since this is a patch | |
spec: | |
# spec.spinnakerConfig - This section is how to specify configuration spinnaker | |
spinnakerConfig: | |
# spec.spinnakerConfig.profiles - This section contains the YAML of each service's profile | |
profiles: | |
orca: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: spinnaker.armory.io/v1alpha2 | |
kind: SpinnakerService | |
metadata: | |
name: spinnaker | |
spec: | |
validation: | |
providers: | |
kubernetes: | |
enabled: true # Default: true. Indicate if operator should do connectivity checks to configured kubernetes accounts before applying the manifest | |
spinnakerConfig: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
repo_update: true | |
repo_upgrade: all | |
packages: | |
- curl | |
- golang | |
- httpie | |
- jq | |
- make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update_config: ## Update vars.jsonnet | |
@echo "External IPs are ${EXT_IP}" | |
curl -s https://gist.githubusercontent.com/alchen99/249b382a8c64401638d87e9f0dd13fb7/raw/b02654ed49f1b92f9130c56bd2dff62fb8afd1eb/vars.jsonnet -o vars.jsonnet | |
curl -s https://gist.githubusercontent.com/alchen99/b55d285d018abe23d196d82f6e824133/raw/fc34a76e957fe90dfca3f703600d43b54c2e4209/minnaker-tmp.crt -o server.crt | |
curl -s https://gist.githubusercontent.com/alchen99/b1eaecb36176aba2e049f4148d07abc4/raw/b037195bc4dad6155e6a40dc4c4a3439efe96159/minnaker-tmp.key -o server.key | |
sed -i 's/CHANGE_EXT_IP/'${EXT_IP}'/g' vars.jsonnet | |
@echo "" | |
@echo "Patching prometheus clusterrole so it has more permissions" | |
curl -s https://gist.githubusercontent.com/alchen99/e1fb9fd045a2e82c8d99449a15c1fe8f/raw/926a671dcbd4817b841733016f98d056718a5fb1/prometheus_clusterrole_patch.diff -o prometheus_clusterrole_patch.diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
_config+:: { | |
namespace: 'monitoring', | |
}, | |
// Enable or disable additional modules | |
modules: [ | |
{ | |
// After deployment, run the create_gmail_auth.sh script from scripts dir. | |
name: 'smtpRelay', | |
enabled: false, |