GithubHelp home page GithubHelp logo

ziti-agent-wh's People

Contributors

dariuszski avatar

Watchers

 avatar

ziti-agent-wh's Issues

default roles idea

Role precedence idea:

if pod annotation (typically via a Deployment) with a "safe" separator, not space or comma;
else if explicit namespace annotation (can use the same annotation key, e.g., identity.openziti.io/roles;
else deterministic (predictable, conventional) role like { deployment metadata.name }.{ namespace metadata.name}.{cluster metadata.name, else random ID}

source ziti in deployment image

This change will help to avoid confusion about which version of ziti is installed.

ref: https://github.com/openziti/ziti/blob/release-next/dist/docker-images/ziti-controller/Dockerfile

If the image will use ziti CLI, even if it will not be based on the RedHat UBI, then we can add a build stage in our Dockerfile that sources a pinned ziti version.

example Dockerfile

ARG ZITI_CLI_TAG="latest"
ARG ZITI_CLI_IMAGE="docker.io/openziti/ziti-cli"

# this builds docker.io/openziti/ziti-k8s-agent
FROM ${ZITI_CLI_IMAGE}:${ZITI_CLI_TAG}

# set up image as root
USER root

# do stuff as root
RUN chmod 0755 /usr/local/bin/ziti-agent-wh

# drop privs to ziggy
USER ziggy
COPY ${DOCKER_BUILD_DIR}/deployment/bashrc /home/ziggy/.bashrc
ENTRYPOINT [ "ziti-agent-wh" ]

retry backoff

Need a retry behavior for Ziti CRUD ops that follows some kind of backoff policy to avoid hammering a limping controller

configure cluster DNS

Each tproxy sidecar needs cluster DNS configuration to effect precedence:

  1. Ziti DNS
  2. Cluster DNS

For the MVP we can find and inject the coredns or kube-dns ClusterIP by the common label selector: k8s-app=kube-dns

e.g.,

kubectl --namespace kube-system \
get services --selector=k8s-app=kube-dns \
--output go-template='{{range .items}}{{ .spec.clusterIP }}{{"\n"}}{{end}}'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.