Using this dummy CNI script...
Pay attention to the cniresult()
routine, which returns... two interfaces.
#!/usr/bin/env bash
# DEBUG=true
# LOGFILE=/tmp/seamless.log
Using this dummy CNI script...
Pay attention to the cniresult()
routine, which returns... two interfaces.
#!/usr/bin/env bash
# DEBUG=true
# LOGFILE=/tmp/seamless.log
Enable the reconciler...
oc edit networks.operator.openshift.io cluster
and add the additionalNetworks section like:
additionalNetworks:
- name: whereabouts-shim
namespace: openshift-multus
rawCNIConfig: |-
{
const axios = require('axios'); | |
// Server URL | |
const server = "http://192.168.50.201:5000/api/v1/generate"; | |
// Generation parameters | |
// Reference: https://huggingface.co/docs/transformers/main_classes/text_generation#transformers.GenerationConfig | |
const data = { | |
'prompt': 'recommend a cheese please', | |
"max_new_tokens": 100, |
--- | |
kind: DaemonSet | |
apiVersion: apps/v1 | |
metadata: | |
name: multus-additional-cni-plugins | |
namespace: kube-system | |
annotations: | |
kubernetes.io/description: | | |
This daemon installs and configures auxiliary CNI plugins on each node. | |
spec: |
This demonstrates using a cross-namespace reference in OpenShift to refer to net-attach-defs in the openshift-multus
namespace from another namespace.
See the additional pod.yml
and net-attach-def.yaml
files included in this gist.
Using latest OCP from CI (4.9 master)
This outlines a process for clearing IP address allocations with Whereabouts manually. This clears all allocations, you could be more surgical about it, however, this is efficient if it's possible.
NOTE I have another procedure somewhere which has fancy bash commands to make this easier, and is fully tested, however, in theory this "should just work" (you've heard that before)
I was having trouble verifying my contracts on the Matic blockscout explorer when they were using included files such as the openzepplin libraries.
I found that I was not having good luck with the truffle-flattener, so I went out seeking something else.
I wound up using: https://github.com/DaveAppleton/SolidityFlattery -- which I found from this openzeppelin thread.
You'll need to install golang and configure your gopath.
#!/usr/bin/env bash | |
DEBUG=true | |
# LOGFILE=/tmp/seamless.log | |
# Outputs errors to stderr | |
errorlog () { | |
>&2 echo $1 | |
} |
First, type the Konami code into your terminal, then...
Create a user, then create a password for the user...
oc create user doug
htpasswd -c -B -b /tmp/doughtpass doug s00persecret
Create an ident yaml...