Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ilyes512/ansible
Multiple Ansible images with different kind of tools ready for K8s interactions
https://github.com/ilyes512/ansible
ansible docker docker-image k8s kubernetes
Last synced: 5 days ago
JSON representation
Multiple Ansible images with different kind of tools ready for K8s interactions
- Host: GitHub
- URL: https://github.com/ilyes512/ansible
- Owner: Ilyes512
- Created: 2019-03-07T21:46:28.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T21:33:14.000Z (2 months ago)
- Last Synced: 2024-09-18T02:25:42.539Z (2 months ago)
- Topics: ansible, docker, docker-image, k8s, kubernetes
- Language: Shell
- Homepage:
- Size: 119 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible
[![Build Images](https://github.com/Ilyes512/ansible/workflows/Build%20Images/badge.svg)](https://github.com/Ilyes512/ansible/actions?query=workflow%3A%22Build+Images%22)
Multiple Ansible images with different kind of tools ready for K8s interactions.
## Pulling the images
```
docker pull ghcr.io/ilyes512/ansible:latest
docker pull ghcr.io/ilyes512/ansible:k8s-latest
```## Task commands
Available [Task](https://taskfile.dev/#/) commands:
```
* build: Build and run new.Dockerfile
* lint: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
* requirements: Update requirements.txt file
* a:shell: Interactive shell with Ansible
* scripts:check-versions: Check kubctl and kubectx versions
```## Misc
**Workdir**: `/ansible`
**Environment variables**:
`KUBECONFIG_OVERRIDE`: If this env variable is set, it will put the contents of the variable in a (new) file at
`/root/.kube/context-override`. The path of the new file is then set as the value of `KUBECONFIG`-env.Example:
```bash
docker run --rm --tty --env KUBECONFIG_OVERRIDE="`kind get kubeconfig --internal`" \
ghcr.io/ilyes512/ansible:k8s-latest kubectl get nodes
```Quote:
> kind is a tool for running local Kubernetes clusters using Docker container "nodes".For more info see: https://github.com/kubernetes-sigs/kind