sudo create-k0s-virtual-network-device.sh $(ip route get 8.8.8.8 | awk -- '{printf $5}')
k0s config create >/tmp/k0s.yaml
yq -i \
'.spec.extensions.storage.type = "openebs_local_storage" | .spec.extensions.storage.create_default_storage_class = true' \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ROOT":{ | |
"type":{ | |
"resolvedName":"MiroraShop" | |
}, | |
"isCanvas":true, | |
"props":{ | |
}, | |
"displayName":"Mirora Shop", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
install_yq() { | |
wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY} -O /usr/bin/yq &&\ | |
chmod +x /usr/bin/yq | |
} | |
if [[ ! -f /usr/bin/yq ]] | |
then | |
VERSION=v4https://gist.github.com/khusseini/7ec66d3f7f361674c46952bb0a42c978.18.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from crewai import Agent | |
from langchain_community.llms import Ollama | |
from .tools.kubernetes_events import retrieve_kubernetes_events | |
from .tools.search import search_tool | |
def create_kubernetes_cluster_state_agent(llm=None): | |
if not llm: | |
llm = Ollama(model="llama2") | |
agent = Agent( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
set -e | |
set -a | |
source .env | |
set +a | |
# Check if the cluster already exists | |
CLUSTER_STATUS=$(eksctl get cluster --name ${EKS_CLUSTER_NAME} --region ${EKS_CLUSTER_REGION} --output json | jq -r '.[0].Status') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apiextensions.crossplane.io/v1 | |
kind: CompositeResourceDefinition | |
metadata: | |
name: xternaldns.crossplane.diepartments.dev | |
spec: | |
group: crossplane.diepartments.dev | |
names: | |
kind: XternalDNS | |
plural: xternaldns |
OlderNewer