-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from adamrushuk/develop
v1.6.0 release
- Loading branch information
Showing
25 changed files
with
1,133 additions
and
687 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Attach to PowerShell Functions", | ||
"type": "PowerShell", | ||
"request": "attach", | ||
"customPipeName": "AzureFunctionsPSWorker", | ||
"runspaceId": 1, | ||
"preLaunchTask": "func: host start" | ||
} | ||
{ | ||
"name": "PowerShell Launch Current File", | ||
"type": "PowerShell", | ||
"request": "launch", | ||
"script": "${file}", | ||
"cwd": "${file}" | ||
} | ||
] | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# source: https://github.com/terraform-providers/terraform-provider-azurerm/issues/8867#issuecomment-849842849 | ||
|
||
# Fixes PowerShell function app stack version to 7 | ||
|
||
# Change function app to PS 7 | ||
Write-Host 'Change function app to PS 7' | ||
$function = az functionapp show --name $env:FUNCTION_APP_NAME --resource-group $env:FUNCTION_APP_RG | ConvertFrom-Json | ||
|
||
if ($function.siteConfig.powerShellVersion -ne "~7") { | ||
Write-Host "Updating powershell version to ~7..." | ||
az functionapp update --name $env:FUNCTION_APP_NAME --resource-group $env:FUNCTION_APP_RG --set "siteConfig.powerShellVersion=~7" | ||
|
||
# Restart Function App | ||
# az functionapp restart --name $env:FUNCTION_APP_NAME --resource-group $env:FUNCTION_APP_RG | ||
} else { | ||
Write-Host "Powershell version already set to to ~7" | ||
} | ||
|
||
Write-Host '' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Splunk | ||
|
||
Used for Splunk related testing. | ||
|
||
## Installation | ||
|
||
### Terraform | ||
|
||
Build an AKS cluster: | ||
|
||
```bash | ||
# Init | ||
cd ./splunk | ||
terraform init #-upgrade | ||
|
||
# Apply | ||
terraform apply | ||
|
||
# Outputs | ||
terraform output | ||
|
||
--- | ||
|
||
# Delete | ||
terraform destroy | ||
``` | ||
|
||
### Splunk Operator | ||
|
||
There is a current issue with [Admin Installation for All Namespaces](https://github.com/splunk/splunk-operator/issues/206), | ||
so use the [non-admin user method](https://github.com/splunk/splunk-operator/blob/develop/docs/Install.md#installation-using-a-non-admin-user). | ||
|
||
#### Install | ||
|
||
Install the Splunk Operator as a non-admin user. | ||
|
||
```bash | ||
# create namespace | ||
kubectl create namespace splunk-operator | ||
|
||
# an admin needs to install the CRDs | ||
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/1.0.1/splunk-operator-crds.yaml | ||
|
||
# install splunk operator into namespace | ||
# v1.0.1 doesnt currently work - I've raised this issue: https://github.com/splunk/splunk-operator/issues/373 | ||
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/1.0.1/splunk-operator-noadmin.yaml --namespace splunk-operator | ||
|
||
|
||
# 1.0.0 works | ||
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/1.0.0/splunk-operator-crds.yaml | ||
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/1.0.0/splunk-operator-noadmin.yaml --namespace splunk-operator | ||
``` | ||
|
||
### Splunk Deployments | ||
|
||
After deploying one of the methods below, [get the password](https://github.com/splunk/splunk-operator/blob/develop/docs/Examples.md#reading-global-kubernetes-secret-object) | ||
by running the following code: | ||
|
||
```bash | ||
# kubectl get secret splunk-<desired_namespace>-secret -o go-template=' {{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' | ||
kubectl get secret --namespace splunk-operator splunk-splunk-operator-secret -o go-template=' {{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' | ||
``` | ||
|
||
You can then port-forward to the pod and view the web interface: | ||
|
||
```bash | ||
kubectl port-forward splunk-s1-standalone-0 8000 | ||
kubectl port-forward --namespace splunk-operator splunk-single-standalone-0 8000 | ||
``` | ||
|
||
#### Standalone | ||
|
||
https://github.com/splunk/splunk-operator/blob/develop/docs/Examples.md#creating-a-clustered-deployment | ||
|
||
```bash | ||
cat <<EOF | kubectl apply --namespace splunk-operator -f - | ||
apiVersion: enterprise.splunk.com/v1 | ||
kind: Standalone | ||
metadata: | ||
name: single | ||
finalizers: | ||
- enterprise.splunk.com/delete-pvc | ||
EOF | ||
``` | ||
|
||
#### Cluster Master and Indexers | ||
|
||
https://github.com/splunk/splunk-operator/blob/develop/docs/Examples.md#indexer-clusters | ||
|
||
```bash | ||
# Cluster Master | ||
cat <<EOF | kubectl apply -f - | ||
apiVersion: enterprise.splunk.com/v1 | ||
kind: ClusterMaster | ||
metadata: | ||
name: cm | ||
finalizers: | ||
- enterprise.splunk.com/delete-pvc | ||
EOF | ||
|
||
# Indexers | ||
cat <<EOF | kubectl apply -f - | ||
apiVersion: enterprise.splunk.com/v1 | ||
kind: IndexerCluster | ||
metadata: | ||
name: example | ||
finalizers: | ||
- enterprise.splunk.com/delete-pvc | ||
spec: | ||
clusterMasterRef: | ||
name: cm | ||
EOF | ||
``` |
Oops, something went wrong.