forked from lerndevops/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lerndevops
authored
Apr 19, 2020
1 parent
a607915
commit 96341b7
Showing
1 changed file
with
27 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
kubectl create -f https://operatorhub.io/install/splunk.yaml | ||
kubectl get ns | ||
kubectl get pods my-splunk | ||
kubectl get pods -n my-splunk | ||
kubectl get sts -n my-splunk | ||
kubectl get deploy -n my-splunk | ||
|
||
|
||
cat <<EOF | kubectl -n my-splunk apply -f - | ||
apiVersion: enterprise.splunk.com/v1alpha2 | ||
kind: Standalone | ||
metadata: | ||
name: s1 | ||
finalizers: | ||
- enterprise.splunk.com/delete-pvc | ||
EOF | ||
|
||
|
||
kubectl get sts -n my-splunk | ||
kubectl get svc -n my-splunk | ||
kubectl get pods -n my-splunk | ||
kubectl port-forward splunk-s1-standalone-0 8000 -n my-splunk | ||
|
||
kubectl get secret splunk-s1-standalone-secrets -o jsonpath='{.data.password}' | base64 --decode # to get the pwd | ||
|
||
|
||
Now use 8000 port to acces page # user= admin, password get from above cmd |