Commit af3a7f5d authored by Manuel Kieweg's avatar Manuel Kieweg 🤷
Browse files

boilerplate yaml files

parent ab88d73c
apiVersion: v1
kind: Namespace
metadata:
name: gosdn-develop
labels:
client: internal
env: dev
\ No newline at end of file
kind: Service
apiVersion: v1
metadata:
name: gosdn-develop
labels:
app: gosdn-develop
spec:
type: NodePort
ports:
- name: http
protocol: TCP
port: 8080
targetPort: 8080
- name: grpc
protocol: TCP
port: 55055
targetPort: 55055
selector:
app: gosdn-develop
deployment: gosdn-develop
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: gosdn-develop
labels:
app: go
spec:
replicas: 1
selector:
matchLabels:
app: gosdn-develop
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
template:
metadata:
labels:
app: gosdn-develop
spec:
containers:
- name: gosdn
image: registry.code.fbi.h-da.de/cocsn/gosdn:develop
imagePullPolicy: Always
ports:
- containerPort: 55055
- containerPort: 8080
volumeMounts:
- name: gosdn-config-volume
mountPath: /usr/local/etc/gosdn/gosdn.toml
livenessProbe:
httpGet:
path: /livez
port: 8080
initialDelaySeconds: 20
periodSeconds: 2
readinessProbe:
httpGet:
path: /readyz
port: 8080
initialDelaySeconds: 120
periodSeconds: 2
imagePullSecrets:
- name: k8s-gosdn-test
volumes:
- name: gosdn-config-volume
configMap:
name: gosdn-develop-config
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment