Skip to content

Instantly share code, notes, and snippets.

View rberrelleza's full-sized avatar
👋
Hi friend!

Ramiro Berrelleza rberrelleza

👋
Hi friend!
View GitHub Profile
@rberrelleza
rberrelleza / Markdium-text.txt
Created September 3, 2019 21:02
Markdium-An Early Look At Helm 3
okteto> mkdir helm3
okteto> cd helm3
okteto> okteto init
@rberrelleza
rberrelleza / Markdium-text.txt
Created September 3, 2019 21:02
Markdium-An Early Look At Helm 3
okteto> okteto namespace
✓ Updated context 'cloud_okteto_com' in '/Users/ramiro/.kube/config'
@rberrelleza
rberrelleza / Markdium-text.txt
Created September 3, 2019 21:02
Markdium-An Early Look At Helm 3
okteto> helm create hello-world
Creating hello-world
@rberrelleza
rberrelleza / Markdium-text.txt
Created September 3, 2019 21:02
Markdium-An Early Look At Helm 3
okteto> helm version
version.BuildInfo{Version:"v3.0.0-beta.1", GitCommit:"f76b5f21adb53a85de8925f4a9d4f9bd99f185b5", GitTreeState:"clean", GoVersion:"go1.12.9"}
@rberrelleza
rberrelleza / Markdium-text.txt
Created September 3, 2019 21:02
Markdium-An Early Look At Helm 3
okteto> okteto up
Deployment okteto-helm3 doesn't exist in namespace rberrelleza. Do you want to create a new one? [y/n]: y
✓ Persistent volume provisioned
✓ Files synchronized
✓ Okteto Environment activated
Namespace: rberrelleza
Name: okteto-helm3
Welcome to your development environment. Happy coding!
@rberrelleza
rberrelleza / Markdium-text.txt
Created September 3, 2019 21:02
Markdium-An Early Look At Helm 3
okteto> helm install hello-world ./hello-world
NAME: hello-world
LAST DEPLOYED: 2019-08-29 23:01:17.851466604 +0000 UTC m=+0.128796294
NAMESPACE: rberrelleza
STATUS: deployed
....
@rberrelleza
rberrelleza / handler.go
Created August 8, 2019 11:04
openfaas + okteto blog post
package function
import (
"crypto/sha256"
"fmt"
)
// Handle a serverless request
func Handle(req []byte) string {
s := sha256.Sum256(req)
@rberrelleza
rberrelleza / handler.go
Last active August 8, 2019 11:01
openfaas + okteto blog post
package function
import (
"crypto/sha256"
"fmt"
"time"
)
// Handle a serverless request
func Handle(req []byte) string {
@rberrelleza
rberrelleza / rbac.yaml
Last active July 11, 2019 20:29
Create service account, role, and bind it all together
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: configurator-role
rules:
- apiGroups:
- ""
resources:
- configmaps
- secrets
@rberrelleza
rberrelleza / jaeger-all-in-one-template.yml
Last active July 9, 2019 12:28
Install Jaeger in an Okteto namespace
#
# Copyright 2017-2019 The Jaeger Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express