Skip to content

Instantly share code, notes, and snippets.

package handler
import (
"context"
log "github.com/micro/micro/v3/service/logger"
helloworld "helloworld/proto"
)
FROM alpine
ADD helloworld /helloworld
ENTRYPOINT [ "/helloworld" ]
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
namespace: micro
labels:
project: micro
micro: service
name: helloworld
version: latest
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:
stages:
- name: Publish - Landing
when:
branch: master
steps:
- publishImageConfig:
dockerfilePath: ./Dockerfile
buildContext: .
tag: my-landing:${CICD_EXECUTION_SEQUENCE}
pushRemote: true
FROM nginx:stable-alpine
COPY ./landing/index.html /usr/share/nginx/html
COPY ./landing/assets /usr/share/nginx/html/assets
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-landing
spec:
selector:
matchLabels:
app: my-landing
template:
metadata:
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:
#!/bin/bash
python manage.py dumpdata --natural-foreign \
sites \
users \
cms \
menus \
sekizai \
treebeard \
djangocms_text_ckeditor \
filer \
wordpressUsername: admin
# Uncomment to define the password or leave commented to auto-generate one
# wordpressPassword:
wordpressEmail: [email protected]
wordpressFirstName: John
wordpressLastName: Smith
wordpressBlogName: Awesomic Marketing Frontend
wordpressScheme: https
livenessProbe:
httpGet: