Skip to content

Instantly share code, notes, and snippets.

@styblope
styblope / dnsmasq.md
Created Nov 30, 2018 — forked from jlebon/dnsmasq.md
How to set up dnsmasq on an OpenShift cluster
View dnsmasq.md

This gist is mostly based on the dnsmasq appendix from the openshift-training repo. However, I updated it and included fixes for the many gotchas I found along the way.

This is useful for folks who want to set up a DNS service as part of the cluster itself, either because they cannot easily change their DNS setup outside of the cluster, or just because they want to keep the cluster setup self-contained.

View redhat-7.5-server-docker-18.03-setup.md

HOWTO INSTALL DOCKER 18.03 EE on RHEL 7.5

Note:

The docker package comes from the RHEL Extras repository (rhel-7-server-extras-rpms). RHEL Extras is only supported with the latest RHEL minor release. So now Extras requires RHEL 7.5.

Previous minor releases will fail on dependency errors. Need to download custom version of container-selinux, see below.

RedHat and Docker account registration

View ACE-deploy-to-ICP.md

Install IBM ACE from PPA Archive

bx pr load-ppa-archive --archive /home/user/DOWNLOADS/ACE_V11.0_Container.tar.gz --clustername mycluster.icp

Verify ACE production chart in the ICP catalog

ICP -> Catalog

Install and run

@styblope
styblope / Customization.pm
Created Oct 4, 2018
VMWare vCenter network adapter name detection fix
View Customization.pm
sub GetInterfaceByMacAddress
{
# This function is same as GetInterfaceByMacAddress but uses
# '/sbin/ip addr show' instead of/sbin/ifconfig
my ($self, $macAddress, $ipAddrResult) = @_;
my $result = undef;
if (! defined $ipAddrResult) {
my $ipPath = Utils::GetIpPath();
if ( defined $ipPath){
View ubuntu-18.04-preseed.cfg
#### Contents of the preconfiguration file (for stretch)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US.UTF-8
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string US
#d-i debian-installer/locale string en_US.UTF-8
@styblope
styblope / external-ip-services.sh
Created Sep 26, 2018
Services routing using external IPs
View external-ip-services.sh
# https://kubernetes.io/docs/concepts/services-networking/service/#external-ips
# If there are external IPs that route to one or more cluster nodes, Kubernetes services can be exposed on those externalIPs.
# Traffic that ingresses into the cluster with the external IP (as destination IP), on the service port, will be routed to
# one of the service endpoints.
# Create test app pods
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
@styblope
styblope / docker-api-port.md
Last active Aug 4, 2022
Enable TCP port 2375 for external connection to Docker
View docker-api-port.md

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}