Skip to content

Instantly share code, notes, and snippets.

@pavolloffay
Last active January 17, 2023 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavolloffay/c491cccd3488ba0595045ea8fa8789f7 to your computer and use it in GitHub Desktop.
Save pavolloffay/c491cccd3488ba0595045ea8fa8789f7 to your computer and use it in GitHub Desktop.
Guidelines for Jaeger installer on OpenShift
  1. download istiooc binary https://github.com/openshift-istio/origin/releases
  2. run ./istiooc_linux cluster up --istio=true

Change openshift-ansible and reflect changes in OC cluster

Build and tag the image brefore running oc cluster up so it can be consumed from local registry.

  1. build modified ansible image cd openshift-ansible && docker build -f images/installer/Dockerfile.istio -t openshiftistio/origin-ansible .
  2. remove/rename the old image docker rmi <sha>
  3. tag new image appropriately docker tag 17fece18c5ca openshiftistio/origin-ansible:<> the version is usually the same as istiooc

Run ansible script from source

  • ansible-playbook -vvv --inventory inventory-logging.yaml playbooks/openshift-istio/config.yml
  • add ose to /etc/hosts the IP is openshift
---
[OSEv3:children]
masters
nodes
etcd
# Logging
[OSEv3:vars]
ansible_ssh_user=root
deployment_type=origin
openshift_deployment_type=origin
# openshift_web_console_install=false
openshift_disable_check=docker_storage,memory_availability,disk_availability
openshift_logging_install_eventrouter=False
openshift_logging_install_logging=True
openshift_logging_use_mux=False
openshift_logging_use_ops=False
openshift_logging_image_prefix="openshift/origin-"
#openshift_logging_kibana_hostname=ose-kibana
# openshift_logging_kibana_ops_hostname=ose-kibana-ops
#openshift_logging_master_public_url=https://ose:8443
openshift_logging_fluentd_image_version=v3.9
openshift_logging_elasticsearch_cpu_limit=500m
openshift_logging_elasticsearch_memory_limit=512Mi
openshift_logging_kibana_memory_limit=256Mi
openshift_logging_fluentd_memory_limit=256Mi
openshift_logging_elasticsearch_cpu_request=500m
openshift_logging_elasticsearch_memory_request=512Mi
openshift_logging_kibana_memory_request=256Mi
openshift_logging_fluentd_memory_request=256Mi
openshift_install_examples=false
skip_sanity_checks=true
[masters]
ose openshift_public_hostname=ose openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
#ose openshift_public_hostname=ose openshift_schedulable=true openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
[nodes]
ose
#localhost
#10.33.144.187
[etcd]
ose
#localhost
#10.33.144.187
@pavolloffay
Copy link
Author

tce-load -wi python
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo pip install pyyaml
sudo chown -R docker /etc/ansible/
sudo mkdir -p /etc/origin/master/
sudo touch /etc/origin/master/admin.kubeconfig
docker exec 95e668c37959 /usr/bin/oc $@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment