go-repo/deploy/deploy.yml

59 lines
1.0 KiB
YAML
Raw Normal View History

2020-11-21 11:24:30 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-repo
labels:
app: go-repo
spec:
replicas: 1
template:
metadata:
name: go-repo
labels:
app: go-repo
spec:
containers:
- name: go-repo
args:
- /config/config.yml
image: adphi/go-repo
2020-11-21 12:04:49 +00:00
imagePullPolicy: Always
2020-11-21 11:36:08 +00:00
ports:
- containerPort: 8888
2020-11-21 11:24:30 +00:00
volumeMounts:
- mountPath: /config
name: config
restartPolicy: Always
volumes:
- name: config
configMap:
name: go-repo
selector:
matchLabels:
app: go-repo
---
apiVersion: v1
kind: ConfigMap
metadata:
name: go-repo
data:
config.yml: |
modules:
- import: go.adphi.net/go-repo
repository: git.adphi.net/adphi/go-repo
readme: git.adphi.net/adphi/go-repo/raw/master/README.md
---
apiVersion: v1
kind: Service
metadata:
name: go-repo
spec:
selector:
app: go-repo
ports:
2020-11-21 11:36:08 +00:00
- port: 80
targetPort: 8888
2020-11-21 11:24:30 +00:00
type: LoadBalancer