Commit c40f802a authored by Sebastian Schrader's avatar Sebastian Schrader
Browse files

Initial commit

parents
---
apiVersion: v1
kind: Service
metadata:
name: aapp
spec:
type: ClusterIP
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: aapp
---
apiVersion: v1
kind: Service
metadata:
name: bapp
spec:
type: ClusterIP
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: bapp
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: registry
spec:
ingressClassName: nginx
rules:
- host: registry.185.97.173.221.nip.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: registry
port:
number: 5000
- host: aapp.185.97.173.241.nip.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: registry
port:
number: 5000
---
apiVersion: v1
kind: Pod
metadata:
name: registry
labels:
service: registry
spec:
containers:
- name: registry
image: registry:latest
volumeMounts:
- mountPath: /var/lib/registry
name: registry
volumes:
- name: registry
persistentVolumeClaim:
claimName: registry
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: registry
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
name: registry
spec:
type: ClusterIP
ports:
- port: 5000
protocol: TCP
targetPort: 5000
selector:
service: registry
Supports Markdown
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