Giter Club home page Giter Club logo

willyguggenheim / kubify Goto Github PK

View Code? Open in Web Editor NEW
7.0 5.0 4.0 18.49 MB

Rapid Software Development Platform

Home Page: https://kubify.com

License: Other

Dockerfile 0.28% Shell 10.17% HTML 0.25% C# 0.27% CSS 0.09% JavaScript 0.06% Python 5.66% Jinja 2.68% Java 0.09% Makefile 1.16% Smarty 3.98% Mustache 1.81% HCL 73.08% Go 0.42%
docker devops kubernetes aws skaffolder-generator skaffolder-cli eks eks-cluster aws-cloudformation cloudformation

kubify's People

Contributors

kubify-com avatar philiptolk avatar willyguggenheim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kubify's Issues

make cloud

But Why?

make cloud
python3 -m kubify.cloud.deploy_local_clusters &&
echo $CICD_ENABLE_CLOUDS_DEPLOY | grep 1 2>/dev/null && python3 -m kubify.cloud.deploy_clouds_clusters
make: *** [cloud] Error 1

Priority ?

error: timed out waiting for the condition on pods/ingress-nginx-controller

serviceaccount/ingress-nginx-admission unchanged
clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
role.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
rolebinding.rbac.authorization.k8s.io/ingress-nginx-admission unchanged
job.batch/ingress-nginx-admission-create unchanged
job.batch/ingress-nginx-admission-patch unchanged

  • kubectl --context kind-kind wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s
    error: timed out waiting for the condition on pods/ingress-nginx-controller-66b95884c8-cjvg5
  • sleep 20
  • kubectl --context kind-kind wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s
    error: timed out waiting for the condition on pods/ingress-nginx-controller-66b95884c8-cjvg5
  • sleep 20
  • kubectl --context kind-kind wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s
    error: timed out waiting for the condition on pods/ingress-nginx-controller-66b95884c8-cjvg5

make format error

make format
conda env update --file environment.yml --prune
Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:

  • libzlib==1.2.12=h03a7124_4
  • libmambapy==0.27.0=py310h5fdb59d_0
  • ca-certificates==2022.9.24=h4653dfc_0
  • libarchive==3.5.2=h69ec738_3
  • libedit==3.1.20191231=hc8eb9b7_2
  • libcxx==14.0.6=h2692d47_0
  • krb5==1.19.3=hf9b2bbe_0
  • ruamel_yaml==0.15.80=py310h02f21da_1007
  • libiconv==1.17=he4db4b2_0
  • astroid==2.12.10=py310hbe9552e_0
  • brotlipy==0.7.0=py310hf8d0d8f_1004
  • pycosat==0.6.3=py310hf8d0d8f_1010
  • bzip2==1.0.8=h3422bc3_4
  • conda-package-handling==1.9.0=py310h8e9501a_0
  • libffi==3.4.2=h3422bc3_5
  • lazy-object-proxy==1.7.1=py310hf8d0d8f_1
  • libnghttp2==1.47.0=h232270b_1
  • icu==70.1=h6b3803e_0
  • conda==22.9.0=py310hbe9552e_1
  • libssh2==1.10.0=hb80f160_3
  • lz4-c==1.9.3=hbdafb3b_1
  • importlib-metadata==4.11.4=py310hbe9552e_0
  • libcurl==7.85.0=hd538317_0
  • libsqlite==3.39.4=h76d750c_0
  • tk==8.6.12=he1e0b03_0
  • reproc==14.2.3=h3422bc3_0
  • python==3.10.6=hbce4517_0_cpython
  • ncurses==6.3=h07bb92c_1
  • libmamba==0.27.0=h0745fb2_0
  • mamba==0.27.0=py310h25b57eb_0
  • xz==5.2.6=h57fd34a_0
  • libev==4.33=h642e427_1
  • lzo==2.10=h642e427_1000
  • reproc-cpp==14.2.3=hbdafb3b_0
  • wrapt==1.14.1=py310h02f21da_0
  • libxml2==2.10.2=ha9542bf_1
  • libsolv==0.7.22=h1280f1d_0
  • readline==8.1.2=h46ed386_0
  • cryptography==38.0.1=py310h4fe9c50_0
  • cffi==1.15.1=py310he00a5c5_0
  • pep517==0.12.0=py310hbe9552e_2
  • yaml==0.2.5=h3422bc3_2
  • zstd==1.5.2=h8128057_4
  • c-ares==1.18.1=h3422bc3_0
  • openssl==1.1.1q=ha287fd2_0
  • yaml-cpp==0.7.0=hb7217d7_2

make: *** [Makefile:61: format] Error 1

kubify up None type not interable

But Why?

inside .devcontainer in branch python

root@docker-desktop:/src/kubify# make pip && kubify up && cd services/backoffice/example-node-svc && kubify start

Successfully installed kubify
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
/usr/lib/python3/dist-packages/requests/init.py:89: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (3.0.4) doesn't match a supported version!
warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
02-10-2022 05:28:17 : INFO : log : setup_logger : 43
: (Process Details : (3519, MainProcess),
Thread Details : (281473770684432, MainThread))
Log
: start logging
๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป
...................๐Ÿ˜Ž Installing or Re-Installing Kubify ๐Ÿ˜Ž...................
๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป๐Ÿ’ป
Traceback (most recent call last):
File "/usr/local/bin/kubify", line 11, in
load_entry_point('kubify', 'console_scripts', 'kubify')()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2854, in load_entry_point
return ep.load()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2445, in load
return self.resolve()
File "/usr/lib/python3/dist-packages/pkg_resources/init.py", line 2451, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/src/kubify/kubify/cli.py", line 52, in
kubify.up()
File "/src/kubify/kubify/src/kubify.py", line 73, in up
kubify_up_class.up()
File "/src/kubify/kubify/up.py", line 60, in up
cluster.create()
File "/usr/local/lib/python3.8/dist-packages/pytest_kind/cluster.py", line 129, in create
config = pykube.KubeConfig.from_file(self.kubeconfig_path)
File "/usr/local/lib/python3.8/dist-packages/pykube/config.py", line 98, in from_file
self = cls(doc, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pykube/config.py", line 139, in init
elif "current-context" in doc and doc["current-context"]:
TypeError: argument of type 'NoneType' is not iterable
root@docker-desktop:/src/kubify#

separate cloud providers

But Why?

I separated in branch

kubify/Makefile

Line 105 in ed528a4

cloud: aws-cloud azure-cloud gcp-cloud

to show that we should be able to use kubify with only one cloud provider or two or all three

Need to refactor terraform to modularize cloud providers

Priority ?

aws.eks terraform module error

But Why?

terraform apply --var="cluster_name=kubify-dev"
โ•ท
โ”‚ Warning: Argument is deprecated
โ”‚
โ”‚ with module.aws.module.eks-dr-us-east-1.module.vpc.aws_eip.nat,
โ”‚ on .terraform/modules/aws.eks-dr-us-east-1.vpc/main.tf line 1013, in resource "aws_eip" "nat":
โ”‚ 1013: vpc = true
โ”‚
โ”‚ use domain attribute instead
โ”‚
โ”‚ (and one more similar warning elsewhere)
โ•ต
โ•ท
โ”‚ Error: Unsupported argument
โ”‚
โ”‚ on .terraform/modules/aws.eks-dr-us-east-1.vpc/main.tf line 35, in resource "aws_vpc" "this":
โ”‚ 35: enable_classiclink = null # hashicorp/terraform#31730
โ”‚
โ”‚ An argument named "enable_classiclink" is not expected here.
โ•ต
โ•ท
โ”‚ Error: Unsupported argument
โ”‚
โ”‚ on .terraform/modules/aws.eks-dr-us-east-1.vpc/main.tf line 36, in resource "aws_vpc" "this":
โ”‚ 36: enable_classiclink_dns_support = null # hashicorp/terraform#31730
โ”‚
โ”‚ An argument named "enable_classiclink_dns_support" is not expected here.
โ•ต
โ•ท
โ”‚ Error: Unsupported argument
โ”‚
โ”‚ on .terraform/modules/aws.eks-dr-us-east-1.vpc/main.tf line 1246, in resource "aws_default_vpc" "this":
โ”‚ 1246: enable_classiclink = null # hashicorp/terraform#31730
โ”‚
โ”‚ An argument named "enable_classiclink" is not expected here.
โ•ต
โ•ท
โ”‚ Error: Unsupported argument
โ”‚
โ”‚ on .terraform/modules/aws.eks-primary-us-west-2.vpc/main.tf line 35, in resource "aws_vpc" "this":
โ”‚ 35: enable_classiclink = null # hashicorp/terraform#31730
โ”‚
โ”‚ An argument named "enable_classiclink" is not expected here.
โ•ต
โ•ท
โ”‚ Error: Unsupported argument
โ”‚
โ”‚ on .terraform/modules/aws.eks-primary-us-west-2.vpc/main.tf line 36, in resource "aws_vpc" "this":
โ”‚ 36: enable_classiclink_dns_support = null # hashicorp/terraform#31730
โ”‚
โ”‚ An argument named "enable_classiclink_dns_support" is not expected here.
โ•ต
โ•ท
โ”‚ Error: Unsupported argument
โ”‚
โ”‚ on .terraform/modules/aws.eks-primary-us-west-2.vpc/main.tf line 1246, in resource "aws_default_vpc" "this":
โ”‚ 1246: enable_classiclink = null # hashicorp/terraform#31730
โ”‚
โ”‚ An argument named "enable_classiclink" is not expected here.

Priority ?

outdated xcode tools error on install

TASK [Installing & Upgrading Homebrew Packages] ********************************************************************
task path: /Users/user/kubify/src/kubify/k8s/ansible/install_kubify_on_mac.yaml:131
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: user
<127.0.0.1> EXEC /bin/sh -c 'echo ~user && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /Users/user/.ansible/tmp"&& mkdir "echo /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625" && echo ansible-tmp-1642436737.054215-18448-38784638267625="echo /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625" ) && sleep 0'
redirecting (type: modules) ansible.builtin.homebrew to community.general.homebrew
Using module file /usr/local/Cellar/ansible/4.8.0/libexec/lib/python3.10/site-packages/ansible_collections/community/general/plugins/modules/homebrew.py
<127.0.0.1> PUT /Users/user/.ansible/tmp/ansible-local-1658s_ux3fxm/tmphhi6l_8p TO /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625/AnsiballZ_homebrew.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625/ /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625/AnsiballZ_homebrew.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625/AnsiballZ_homebrew.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625/ > /dev/null 2>&1 && sleep 0'
[WARNING]: Error deleting remote temporary files (rc: -9, stderr: })
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/user/.ansible/tmp/ansible-tmp-1642436737.054215-18448-38784638267625/ > /dev/null 2>&1 && sleep 0'
fatal: [127.0.0.1]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"install_options": [],
"name": [
"minikube",
"jq",
"jsonnet",
"kubetail",
"kubernetes-cli",
"kubecfg",
"kubectx",
"helm",
"helmfile",
"coreutils",
"awscli",
"dnsmasq",
"watch",
"npm",
"skaffold",
"gpg",
"glide",
"go"
],
"path": "/usr/local/bin:/opt/homebrew/bin",
"state": "upgraded",
"update_homebrew": false,
"upgrade_all": true,
"upgrade_options": []
}
}
}

MSG:

Warning: Calling bottle :unneeded is deprecated! There is no replacement.
Please report this issue to the instrumenta/instrumenta tap (not Homebrew/brew or Homebrew/core):
/usr/local/Homebrew/Library/Taps/instrumenta/homebrew-instrumenta/Formula/kubeval.rb:6

Error: Your Command Line Tools are too outdated.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force

If that doesn't show you any updates, run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

Alternatively, manually download them from:
https://developer.apple.com/download/all/.
You should download the Command Line Tools for Xcode 13.1.
...ignoring

TASK [Ensure Docker and Lens, VSCode are Installed] ****************************************************************
task path: /Users/user/kubify/src/kubify/k8s/ansible/install_kubify_on_mac.yaml:138
ERROR! A worker was found in a dead state

install stuck M1

TASK [Installing Homebrew] *************************************************************************************************************************************************************************************************************************************************************************************************
task path: /Users/diamond/Desktop/code/kubify/src/kubify/k8s/ansible/install_kubify_on_mac_osx_m1_m1x.yaml:65
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: diamond
<127.0.0.1> EXEC /bin/sh -c 'echo ~diamond && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /Users/diamond/.ansible/tmp"&& mkdir "echo /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018" && echo ansible-tmp-1642205394.827517-51238-19071727981018="echo /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018" ) && sleep 0'
Using module file /opt/homebrew/Cellar/ansible/5.0.1/libexec/lib/python3.10/site-packages/ansible/modules/command.py
<127.0.0.1> PUT /Users/diamond/.ansible/tmp/ansible-local-51178sui_x8f0/tmpss644_1z TO /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018/AnsiballZ_command.py
<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018/ /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c '/opt/homebrew/bin/python3.9 /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018/AnsiballZ_command.py && sleep 0'
<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /Users/diamond/.ansible/tmp/ansible-tmp-1642205394.827517-51238-19071727981018/ > /dev/null 2>&1 && sleep 0'
fatal: [127.0.0.1]: FAILED! => {
"changed": true,
"cmd": [
"/usr/bin/ruby",
"-e",
"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
],
"delta": "0:00:00.054811",
"end": "2022-01-14 16:09:55.030239",
"invocation": {
"module_args": {
"_raw_params": "/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"",
"_uses_shell": false,
"argv": null,
"chdir": null,
"creates": null,
"executable": null,
"removes": null,
"stdin": null,
"stdin_add_newline": true,
"strip_empty_ends": true,
"warn": false
}
},
"rc": 1,
"start": "2022-01-14 16:09:54.975428"
}

STDERR:

-e:1: `$(' is not allowed as a global variable name

MSG:

non-zero return code

PLAY RECAP *****************************************************************************************************************************************************************************************************************************************************************************************************************
127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1 skipped=1 rescued=0 ignored=0

diamond@Golds-Mac-mini kubify %

Migrate from tfenv to tenv

Hi! I saw that you're using tfenv in this repository. It's a really good tool, but it does not support OpenTofu and Terragrunt. My team designed a successor of tenv that support Terraform, Terragrunt and OpenTofu. It will be a good idea to migrate into it in due to the growing popularity of OpenTofu.
url: https://github.com/tofuutils/tenv

make cloud tfsec issues

But Why?

make cloud
results
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
passed 79
ignored 0
critical 5
high 3
medium 4
low 4

79 passed, 16 potential problem(s) detected.

Priority ?

Stuck waiting for docker

TASK [Waiting for Docker to configure] *********************************************************************************************************
task path: /Users/name/kubify/tools/kubify/kubify/k8s/ansible/install_osx.yaml:135

usr/local/bin/docker ps
Error response from daemon: dial unix docker.raw.sock: connect: connection refused

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.