k8s icon indicating copy to clipboard operation
k8s copied to clipboard

Candidate Tools to add

Open ozbillwang opened this issue 3 years ago • 9 comments

  1. helmfile (https://github.com/helmfile/helmfile)
  2. kubectx + kubens (https://github.com/ahmetb/kubectx)

ozbillwang avatar Sep 21 '22 02:09 ozbillwang

any interest to put below tools as well? Can you vote?

  • jsonnet (https://jsonnet.org/articles/kubernetes.html)
  • kubecfg (https://github.com/kubecfg/kubecfg)
  • make (do we really need make here?)

ozbillwang avatar Sep 21 '22 02:09 ozbillwang

Anything else?

ozbillwang avatar Sep 21 '22 02:09 ozbillwang

make actually will be appreciated because it helps to keep some jobs identical and so up to date both in CI and locally. For example, helm diff\lint, parameterized build commands, etc

It's also tempting to have docker to be able to build images and push them to ECR. But it's kinda controversy

n4nn31355 avatar Oct 20 '22 09:10 n4nn31355

I'd like terraform if possible.

caleb-devops avatar Nov 04 '22 17:11 caleb-devops

dyff would be nice. Could even set KUBECTL_EXTERNAL_DIFF="dyff between --omit-header --set-exit-code".

dhduvall avatar Nov 17 '22 03:11 dhduvall

New tool to me, thanks.

what's the different to helm-diff

ozbillwang avatar Nov 17 '22 05:11 ozbillwang

It's a stand-alone tool instead of a plugin, so it operates on YAML files rather than running the helm command as necessary to extract that data. It does have some special knowledge about Kubernetes manifests, though, so it can do a bit better with them than it would if it treated them as generic YAML.

But what I think stands out about it is that it does a really good job at figuring out which items in each manifest to compare, and presenting them in a really intuitive fashion. The helm-diff README doesn't give a particularly clear example of what its output looks like, and I'm not going to figure it out tonight, but I'll give it a whirl tomorrow to see. Judging from the diffs in the test suite, though, I'd say that dyff gave up on trying to make the diffs look like the output of diff and instead made the diff sections follow the structure of the underlying files, and taking into account special things like reordering of lists.

dhduvall avatar Nov 17 '22 06:11 dhduvall

do we need add tools for DockerFile lint? But It is not very related to k8s deployment.

Dockle Hadolint

ozbillwang avatar Nov 20 '22 23:11 ozbillwang

security command recommended and put in Dockerfile.

RUN find / -xdev -perm /6000 -type f -exec chmod a-s {} \; ||true

ozbillwang avatar Nov 20 '22 23:11 ozbillwang

I would like to see perl-mime-construct to specifically make composing raw email documents easier for aws ses send-raw-email (which only takes a raw MIME formatted email document as input)

I saw the we already have the python email package installed so if anyone knows of a python alternative that provides does the same command line level functionality I wouldn't mind including that instead.

WesselAtWork avatar Jan 09 '23 12:01 WesselAtWork

@WesselAtWork

Anything related to Kubernetes? For mail sending, should we setup another task in pipeline to do that seperately?

ozbillwang avatar Jan 13 '23 10:01 ozbillwang

@ozbillwang good point. Wanted it specifically to make working with aws easier. Not with k8s

WesselAtWork avatar Jan 16 '23 12:01 WesselAtWork

I would like to have kube-conform plugin

coomdan avatar Jan 30 '23 07:01 coomdan

it will be nice to add ansible so all helm command can run from ansible playbook

snup67 avatar Jul 08 '23 01:07 snup67

it will be nice to add ansible so all helm command can run from ansible playbook

thanks, I have replied in https://github.com/alpine-docker/k8s/issues/61#issuecomment-1626884684

ozbillwang avatar Jul 09 '23 13:07 ozbillwang

I would like to have kube-conform plugin

I am thinking if this plugin need be added into alpine/k8s or alpine/helm? Or both?

ozbillwang avatar Jul 11 '23 02:07 ozbillwang

I would like to have kube-conform plugin

I am thinking if this plugin need be added into alpine/k8s or alpine/helm? Or both?

definitively in alpine/helm, but would make sense in both

coomdan avatar Jul 11 '23 13:07 coomdan

I would like to have kube-conform plugin

I am thinking if this plugin need be added into alpine/k8s or alpine/helm? Or both?

definitively in alpine/helm, but would make sense in both

then let's add in alpline/helm first. could you raise the PR to https://github.com/alpine-docker/helm

ozbillwang avatar Jul 13 '23 13:07 ozbillwang

Hello, It would be nice to have flux, thanks !

geomcquat avatar Jul 26 '23 16:07 geomcquat

Hello,

It would be nice to have flux, thanks !

good idea, i am thinking to create another image includes Argocd and flux command line, because they are similar and not depend on k8s

can name it GitOps , is it OK?

ozbillwang avatar Jul 26 '23 22:07 ozbillwang

Hello

Would it be possible to add krew?

Krew docker code:

# Installing Krew
RUN OS="$(uname | tr '[:upper:]' '[:lower:]')" && \
    ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && \
    curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz" && \
    tar zxvf krew.tar.gz && \
    KREW=./krew-"${OS}_${ARCH}" && \
    "$KREW" install krew && \
    cp $HOME/.krew/bin/kubectl-krew /usr/local/bin/

enflo avatar Sep 21 '23 14:09 enflo

sure, can you raise PR for it?

reference the codes

https://github.com/alpine-docker/k8s/blob/master/Dockerfile#L14-L23

to set the ARCH variable

ozbillwang avatar Sep 21 '23 22:09 ozbillwang

Hi @ozbillwang

https://github.com/alpine-docker/k8s/pull/63

As you told me, I have opened a PR with the changes to add Krew, I have left a comment in the PR of a small problem that I did not know how to solve.

Greetings

enflo avatar Sep 23 '23 06:09 enflo

Thank you, @enflo , I have merged your pull request.

Up until now, the image size has grown to over 700 MB. I am considering freezing it and refraining from adding more tools to it.

ozbillwang avatar Sep 25 '23 01:09 ozbillwang