This file contains hidden or 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: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: argocd-server-http-ingress | |
namespace: argocd | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" | |
nginx.ingress.kubernetes.io/backend-protocol: "HTTP" | |
spec: |
This file contains hidden or 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
network: | |
openunison_host: "k8sou.apps.212.2.242.251.nip.io" | |
dashboard_host: "k8sdb.apps.212.2.242.251.nip.io" | |
api_server_host: "k8sapi.apps.212.2.242.251.nip.io" | |
session_inactivity_timeout_seconds: 900 | |
k8s_url: https://0.0.0.0:6443 | |
force_redirect_to_tls: true | |
createIngressCertificate: true | |
ingress_type: nginx | |
ingress_annotations: |
This file contains hidden or 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: v1 | |
kind: Namespace | |
metadata: | |
name: vcluster-blog | |
spec: {} | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: |
This file contains hidden or 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
-----BEGIN CERTIFICATE----- | |
MIIG2zCCBcOgAwIBAgIQBM6JL/SX6DSAwk8ARvpB5zANBgkqhkiG9w0BAQsFADBP | |
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMSkwJwYDVQQDEyBE | |
aWdpQ2VydCBUTFMgUlNBIFNIQTI1NiAyMDIwIENBMTAeFw0yMjA4MTcwMDAwMDBa | |
Fw0yMzA4MTcyMzU5NTlaMHQxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhWaXJnaW5p | |
YTEQMA4GA1UEBxMHRmFpcmZheDEiMCAGA1UEChMZRmFpcmZheCBDb3VudHkgR292 | |
ZXJubWVudDEcMBoGA1UEAxMTaWFtcy1zYW1sLm5jcm5ldC51czCCASIwDQYJKoZI | |
hvcNAQEBBQADggEPADCCAQoCggEBAMBAzgwJLQ1JMs4IHogplzQFrVIx1ZjZ5aOO | |
SHaGx2ZQMpFpwrWuhYfWZ3YSlahRjif4NouRQMmd0KwZAtd1jJDj32Wk7lMDMvbT | |
5O8sN5xL10KxSc0DG+a2hkgyIjJwohykQ0HZ+ZyVFJkzBCIfhWZBv1VrdkC+k4RF |
This file contains hidden or 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/bash | |
USER_DN="cn=ou_svc_account,ou=Users,DC=sub,DC=domain,DC=com" | |
USER_PASSWORD="start123" | |
PORT="10983" | |
if ! $(ldapsearch -x -D $USER_DN -w $USER_PASSWORD -b $USER_DN -s base -H ldap://127.0.0.1:$PORT/ -l 10 > /dev/null ) ; then | |
echo "failed" | |
# hard kill | |
kill -9 $(ps -A | grep java | awk '{print $1}') |
This file contains hidden or 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: openunison.tremolo.io/v1 | |
kind: Workflow | |
metadata: | |
name: create-user-namespace | |
namespace: openunison | |
labels: | |
app.kubernetes.io/name: openunison | |
app.kubernetes.io/instance: openunison-orchestra | |
app.kubernetes.io/component: openunison-workflows |
This file contains hidden or 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
import jwt | |
import yaml | |
from uuid import uuid4 | |
import datetime | |
import sys | |
import json | |
import tempfile | |
from os import system | |
# Generate a kubernetes configuration from a private key |
This file contains hidden or 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
import requests | |
import logging | |
from urllib.parse import urlparse | |
from urllib.parse import parse_qs | |
import json | |
from os import system | |
from kubernetes import client, config | |
#logging.basicConfig(level=logging.DEBUG) |
This file contains hidden or 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: openunison.tremolo.io/v1 | |
kind: Org | |
metadata: | |
name: cluster2 | |
namespace: openunison | |
spec: | |
description: "My second cluster" | |
uuid: 04901973-5f4c-46d9-9e22-55e88e168776 | |
parent: B158BD40-0C1B-11E3-8FFD-0800200C9A66 | |
showInPortal: true |
This file contains hidden or 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
<?php | |
if (!defined('sugarEntry') || !sugarEntry) { | |
die('Not A Valid Entry Point'); | |
} | |
require_once('modules/Users/authentication/SugarAuthenticate/SugarAuthenticate.php'); | |
class HeaderAuthenticate extends SugarAuthenticate | |
{ |