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
| #cloud-config | |
| package_update: true | |
| package_upgrade: true | |
| apt: | |
| sources: | |
| caddy: | |
| source: "deb [signed-by=$KEY_FILE] https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main" | |
| key: | | |
| -----BEGIN PGP PUBLIC KEY BLOCK----- |
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
| variant: fcos | |
| version: 1.4.0 | |
| storage: | |
| directories: | |
| - path: /etc/ucore-autorebase | |
| mode: 0754 | |
| systemd: | |
| units: | |
| - name: ucore-unsigned-autorebase.service | |
| enabled: 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
| format = """ | |
| $username\ | |
| $hostname\ | |
| $kubernetes\ | |
| $git_branch\ | |
| $git_commit\ | |
| $git_state\ | |
| $git_status\ | |
| $hg_branch\ | |
| $docker_context\ |
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
| format = """ | |
| $username\ | |
| $hostname\ | |
| $kubernetes\ | |
| $git_branch\ | |
| $git_commit\ | |
| $git_state\ | |
| $git_status\ | |
| $hg_branch\ | |
| $docker_context\ |
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
| class ExponentialBackoff: | |
| def __init__(self, base=1, integral=False): | |
| self._base = base | |
| self._exp = 0 | |
| self._max = 10 | |
| self._reset_time = base * 2 ** 11 | |
| self._last_invocation = time.monotonic() | |
| r = random.Random() |
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
| accountsservice | |
| acl | |
| acpid | |
| adduser | |
| apparmor | |
| apport | |
| apport-symptoms | |
| apt | |
| apt-transport-https | |
| apt-utils |
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: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: rancher | |
| name: rancher-server | |
| namespace: kube-system | |
| spec: | |
| replicas: 1 | |
| selector: |
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: rancher | |
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| name: rancher | |
| namespace: rancher |
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: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: registry-ingress # Name of resource | |
| spec: | |
| rules: | |
| - host: {{domain}} # Hostname/DNS for registry. Or use registry.{{KUBERNETES-WORKER/0-IP}}.xip.io | |
| http: | |
| paths: | |
| - backend: |
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
| set -ex | |
| REGISTRY_INGRESS_IP=10.73.177.23 | |
| REGISTRY_INGRESS_HOSTNAME=registry.$REGISTRY_INGRESS_IP.xip.io | |
| REQ_CN=10.73.177.126 | |
| # if [ ! -e $REGISTRY_INGRESS_HOSTNAME.key ]; then | |
| # echo '{"CN":"'$REGISTRY_INGRESS_HOSTNAME'","hosts":[""],"key":{"algo":"rsa","size":2048}}' | cfssl gencert -config=ca-config.json -ca=ca.pem -ca-key=ca-key.pem -hostname="$REGISTRY_INGRESS_HOSTNAME" - | cfssljson -bare $REGISTRY_INGRESS_HOSTNAME | |
| # fi |
NewerOlder