willyguggenheim / kubify Goto Github PK
View Code? Open in Web Editor NEWRapid Software Development Platform
Home Page: https://kubify.com
License: Other
Rapid Software Development Platform
Home Page: https://kubify.com
License: Other
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
./kubify hard_reset_docker_mac
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
make format
conda env update --file environment.yml --prune
Collecting package metadata (repodata.json): done
Solving environment: failed
ResolvePackageNotFound:
make: *** [Makefile:61: format] Error 1
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#
I separated in branch
Line 105 in ed528a4
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
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.
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
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 %
Initializing the backend...
Error refreshing state: AccessDenied: Access Denied
My bucket name should perhaps end with my sts identity?
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
results
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
passed 79
ignored 0
critical 5
high 3
medium 4
low 4
79 passed, 16 potential problem(s) detected.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.