Skip to content

Commit

Permalink
Create splunk-Operator
Browse files Browse the repository at this point in the history
  • Loading branch information
lerndevops authored Apr 19, 2020
1 parent a607915 commit 96341b7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions operators/splunk-Operator
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

0 comments on commit 96341b7

Please sign in to comment.