First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
# deployment-sample.yml | |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: my-service-name # name of your deployment | |
namespace: default | |
spec: | |
replicas: 4 # number of instances to spin | |
template: | |
labels: # parameters to match instances in your deployment |
# service-example.yml | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: my-service-name | |
namespace: default | |
labels: | |
app: my-service-name | |
env: dev | |
spec: |
# ingress-values-dev.yml | |
controller: | |
replicaCount: 3 | |
config: | |
ssl-redirect: "false" | |
hsts: "false" | |
hsts-include-subdomains: "true" | |
hsts-max-age: "0" | |
client-body-buffer-size: "128k" | |
disable-access-log: "true" |
# service-with-ingress.yml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: my-frontend | |
labels: | |
app: my-frontend | |
env: dev | |
spec: | |
type: NodePort |
syntax = "proto3"; | |
package examples; | |
message Request { | |
string name = 1; | |
} | |
message Response { | |
string resp = 1; |
# Specifies TCP timeout on connect for use by the frontend ft_redis | |
# Set the max time to wait for a connection attempt to a server to succeed | |
# The server and client side expected to acknowledge or send data. | |
defaults REDIS | |
mode tcp | |
timeout connect 3s | |
timeout server 6s | |
timeout client 6s | |
# Specifies listening socket for accepting client connections using the default |