Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- kind: Namespace
- apiVersion: v1
- metadata:
- name: postgresus
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: postgresus-pvc
- namespace: postgresus
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 1Gi # Adjust as needed
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: postgresus
- namespace: postgresus
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: postgresus
- template:
- metadata:
- labels:
- app: postgresus
- spec:
- containers:
- - name: postgresus
- image: rostislavdugin/postgresus:v1.10.1
- ports:
- - containerPort: 4005
- volumeMounts:
- - name: postgresus-data
- mountPath: /postgresus-data
- resources:
- requests:
- cpu: 100m
- memory: 128Mi
- volumes:
- - name: postgresus-data
- persistentVolumeClaim:
- claimName: postgresus-pvc
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: postgresus
- namespace: postgresus
- spec:
- selector:
- app: postgresus
- ports:
- - protocol: TCP
- port: 80
- targetPort: 4005
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: postgresus
- namespace: postgresus
- annotations:
- ingress.kubernetes.io/rewrite-target: /
- spec:
- rules:
- - host: postgresus.example.com
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: postgresus
- port:
- number: 80
Advertisement
Add Comment
Please, Sign In to add comment