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: my-landing-ingress | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
cert-manager.io/cluster-issuer: "letsencrypt-prod" | |
spec: | |
tls: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: my-landing | |
spec: | |
selector: | |
matchLabels: | |
app: my-landing | |
template: | |
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
FROM nginx:stable-alpine | |
COPY ./landing/index.html /usr/share/nginx/html | |
COPY ./landing/assets /usr/share/nginx/html/assets |
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
stages: | |
- name: Publish - Landing | |
when: | |
branch: master | |
steps: | |
- publishImageConfig: | |
dockerfilePath: ./Dockerfile | |
buildContext: . | |
tag: my-landing:${CICD_EXECUTION_SEQUENCE} | |
pushRemote: 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: micro-api-ingress | |
namespace: micro | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
cert-manager.io/issuer: "micro-prod" | |
spec: | |
rules: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: helloworld | |
namespace: micro | |
labels: | |
project: micro | |
micro: service | |
name: helloworld | |
version: latest |
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
FROM alpine | |
ADD helloworld /helloworld | |
ENTRYPOINT [ "/helloworld" ] |
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
package handler | |
import ( | |
"context" | |
log "github.com/micro/micro/v3/service/logger" | |
helloworld "helloworld/proto" | |
) |
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
syntax = "proto3"; | |
package helloworld; | |
service Helloworld { | |
rpc Call(Request) returns (Response) {} | |
} | |
message Request { | |
string name = 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
package main | |
import ( | |
"helloworld/handler" | |
pb "helloworld/proto" | |
"github.com/micro/micro/v3/service" | |
"github.com/micro/micro/v3/service/logger" | |
) |