Humio on Redhat OpenShift Container Platform

export HUMIO_OPERATOR_VERSION=0.5.0
kubectl apply -f https://raw.githubusercontent.com/humio/humio-operator/operator-$HUMIO_OPERATOR_VERSION/config/crd/bases/core.humio.com_humioclusters.yaml
kubectl apply -f https://raw.githubusercontent.com/humio/humio-operator/operator-$HUMIO_OPERATOR_VERSION/config/crd/bases/core.humio.com_humioexternalclusters.yaml
kubectl apply -f https://raw.githubusercontent.com/humio/humio-operator/operator-$HUMIO_OPERATOR_VERSION/config/crd/bases/core.humio.com_humioingesttokens.yaml
kubectl apply -f https://raw.githubusercontent.com/humio/humio-operator/operator-$HUMIO_OPERATOR_VERSION/config/crd/bases/core.humio.com_humioparsers.yaml
kubectl apply -f https://raw.githubusercontent.com/humio/humio-operator/operator-$HUMIO_OPERATOR_VERSION/config/crd/bases/core.humio.com_humiorepositories.yaml
kubectl apply -f https://raw.githubusercontent.com/humio/humio-operator/operator-$HUMIO_OPERATOR_VERSION/config/crd/bases/core.humio.com_humioviews.yaml
oc new-project logging
helm install humio-operator humio-operator/humio-operator \
— namespace logging \
— version=”$HUMIO_OPERATOR_VERSION”
oc adm policy add-scc-to-user privileged system:serviceaccount:logging:humio-operator -n logging
Humio Operator in RedHat OpenShift Container Platform Console
oc get services -n logging
kubectl create namespace cert-manager
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--version v0.16.0 \
--set installCRDs=true
apiVersion: core.humio.com/v1alpha1
kind: HumioCluster
metadata:
name: humiocluster
namespace: logging
spec:
autoRebalancePartitions: true
tls:
enabled: false
dataVolumePersistentVolumeClaimSpecTemplate:
storageClassName: ibmc-block-gold
accessModes: [ReadWriteOnce]
resources:
requests:
storage: 10Gi
environmentVariables:
- name: "SINGLE_USER_PASSWORD"
value: "develop3r"
- name: "HUMIO_JVM_ARGS"
value: "-Xss2m -Xms256m -Xmx1536m -server -XX:+UseParallelOldGC -XX:+ScavengeBeforeFullGC -XX:+DisableExplicitGC -Dzookeeper.client.secure=false"
- name: "ZOOKEEPER_URL"
value: "humio-cluster-zookeeper-client.logging.svc:9092"
- name: "KAFKA_SERVERS"
value: "humio-cluster-kafka-bootstrap.logging.svc:9092"
oc adm policy add-scc-to-user privileged system:serviceaccount:logging:humiocluster-humio -n logging
apiVersion: v1
kind: Route
metadata:
name: humio-console
namespace: logging
spec:
host: <FQDM_OF_THIS_ROUTE>
to:
kind: Service
name: humiocluster
port:
targetPort: http
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow
apiVersion: v1
kind: Route
metadata:
name: humio-es
namespace: logging
spec:
host: <FQDM_OF_THIS_ROUTE>
to:
kind: Service
name: humiocluster
port:
targetPort: es
tls:
termination: edge
insecureEdgeTerminationPolicy: Allow

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store