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/sh | |
| set -o errexit | |
| #### | |
| ## Kind cluster with local registry (fixed script from the upstream kind). See NOTE comments below for the changed items | |
| # create registry container unless it already exists | |
| reg_name='kind-registry' | |
| reg_port='5000' | |
| running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || 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
| import { injectable } from 'inversify'; | |
| import { FrontendApplicationContribution, FrontendApplication } from '@theia/core/lib/browser'; | |
| import { MaybePromise } from '@theia/core/lib/common/types'; | |
| import { Widget } from '@theia/core/lib/browser/widgets'; | |
| @injectable() | |
| export class ExampleFrontendContribution implements FrontendApplicationContribution { | |
| /** | |
| * Called after the application shell has been attached in case there is no previous workbench layout state. | |
| * Should return a promise if it runs asynchronously. |
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
| for node in node1 node2 node3;do | |
| multipass launch -n $node | |
| done | |
| # Init cluster on node1 | |
| multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -" | |
| # Get node1's IP | |
| IP=$(multipass info node1 | grep IPv4 | awk '{print $2}') |
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: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| name: ingressroutes.traefik.containo.us | |
| spec: | |
| group: traefik.containo.us | |
| version: v1alpha1 | |
| names: | |
| kind: IngressRoute |
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
| services: | |
| traefik: | |
| restart: unless-stopped | |
| image: traefik:v2.0.2 | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| labels: | |
| - "traefik.http.services.traefik.loadbalancer.server.port=8080" |