Skip to content

Instantly share code, notes, and snippets.

View martezr's full-sized avatar

Martez Reed martezr

View GitHub Profile
---
apiVersion: v1
kind: Service
metadata:
name: mysql-service
labels:
app: mysql-service
spec:
ports:
- port: 3306
#!/bin/sh
echo "http://mirrors.edge.kernel.org/alpine/v3.19/community" >> /etc/apk/repositories
apk update
# Install Open VM Tools
apk add open-vm-tools open-vm-tools-guestinfo open-vm-tools-deploypkg
rc-update add open-vm-tools boot
rc-service open-vm-tools start
# Install K3S
curl -sfL https://get.k3s.io | sh -
# Install HELM
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
export kubeconfig=/etc/rancher/k3s/k3s.yaml
# Install Prometheus
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
alias kubectl="k0s kubectl"
kubectl create namespace argo
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v3.5.8/quick-start-minimal.yaml
kubectl patch deployment argo-server --namespace argo --type='json' -p='[{"op": "replace", "path": "/spec/template/spec/containers/0/args", "value": ["server","--auth-mode=server"]}]'
kubectl patch svc argo-server -n argo -p '{"spec": {"type": "NodePort"}}'
kubectl patch svc argocd-server -n argocd -p '{"spec": {"type": "NodePort"}}'
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/name: ingress-nginx
name: ingress-nginx
---
apiVersion: v1
automountServiceAccountToken: true
@martezr
martezr / argoworkflow-install.yaml
Last active July 31, 2024 05:02
Argo Workflows
# This is an auto-generated file. DO NOT EDIT
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusterworkflowtemplates.argoproj.io
spec:
group: argoproj.io
names:
kind: ClusterWorkflowTemplate
listKind: ClusterWorkflowTemplateList
---
hosts:
- name: nightlight02
ssh_public_key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDgmBOLBVf4NlimO/RWBEk+AjMZV7RORupKhz5l5S24T [email protected]
management_interfaces: [eth0]
ip_address: 10.0.0.222
subnet_mask: 255.255.255.0
gateway: 10.0.0.1
dns_servers: [10.0.0.200,10.0.0.1]
int_router_ip_address: 10.0.0.78