Hi every one, Hope you guys doing well, I am using...
# general
k
Hi every one, Hope you guys doing well, I am using Rancher on my local Ubuntu 22.04. I have created cluster deployment and ingress as given below. How to access from browser with localhost or with doman pgadmin.hkdev.net. Many thanks in advance.
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
<http://deployment.kubernetes.io/revision|deployment.kubernetes.io/revision>: '1'
<http://field.cattle.io/publicEndpoints|field.cattle.io/publicEndpoints>: >-
[{"nodeName":":local-node","addresses":["172.17.0.2"],"port":80,"protocol":"TCP","podName":"local:pgadmin-6b5d87f4fc-7hpjl","allNodes":false}]
creationTimestamp: '2023-08-18T09:10:48Z'
generation: 2
labels:
<http://workload.user.cattle.io/workloadselector|workload.user.cattle.io/workloadselector>: apps.deployment-local-pgadmin
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:<http://deployment.kubernetes.io/revision|deployment.kubernetes.io/revision>: {}
f:status:
f:availableReplicas: {}
f:conditions:
.: {}
k:{"type":"Available"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
k:{"type":"Progressing"}:
.: {}
f:lastTransitionTime: {}
f:lastUpdateTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:observedGeneration: {}
f:readyReplicas: {}
f:replicas: {}
f:updatedReplicas: {}
manager: k3s
operation: Update
subresource: status
time: '2023-08-18T09:11:14Z'
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:<http://field.cattle.io/publicEndpoints|field.cattle.io/publicEndpoints>: {}
f:labels:
.: {}
f:<http://workload.user.cattle.io/workloadselector|workload.user.cattle.io/workloadselector>: {}
f:spec:
f:progressDeadlineSeconds: {}
f:replicas: {}
f:revisionHistoryLimit: {}
f:selector: {}
f:strategy:
f:rollingUpdate:
.: {}
f:maxSurge: {}
f:maxUnavailable: {}
f:type: {}
f:template:
f:metadata:
f:labels:
.: {}
f:<http://workload.user.cattle.io/workloadselector|workload.user.cattle.io/workloadselector>: {}
f:namespace: {}
f:spec:
f:affinity: {}
f:containers:
k:{"name":"pgadmin-container"}:
.: {}
f:env:
.: {}
k:{"name":"PGADMIN_DEFAULT_EMAIL"}:
.: {}
f:name: {}
f:value: {}
k:{"name":"PGADMIN_DEFAULT_PASSWORD"}:
.: {}
f:name: {}
f:value: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":5050,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:hostPort: {}
f:name: {}
f:protocol: {}
f:resources: {}
f:securityContext:
.: {}
f:allowPrivilegeEscalation: {}
f:privileged: {}
f:readOnlyRootFilesystem: {}
f:runAsNonRoot: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:dnsPolicy: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
manager: rancher
operation: Update
time: '2023-08-18T09:11:14Z'
name: pgadmin
namespace: local
resourceVersion: '5132'
uid: 60ac1239-75cb-4110-8223-8f8786c15c5f
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
<http://workload.user.cattle.io/workloadselector|workload.user.cattle.io/workloadselector>: apps.deployment-local-pgadmin
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
<http://workload.user.cattle.io/workloadselector|workload.user.cattle.io/workloadselector>: apps.deployment-local-pgadmin
namespace: local
spec:
affinity: {}
containers:
- env:
- name: PGADMIN_DEFAULT_EMAIL
value: <mailto:test@hotelkit.net|test@hotelkit.net>
- name: PGADMIN_DEFAULT_PASSWORD
value: hotelkit123
image: dpage/pgadmin4:latest
imagePullPolicy: Always
name: pgadmin-container
ports:
- containerPort: 5050
hostPort: 80
name: 5050tcp80
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: '2023-08-18T09:11:14Z'
lastUpdateTime: '2023-08-18T09:11:14Z'
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: 'True'
type: Available
- lastTransitionTime: '2023-08-18T09:10:48Z'
lastUpdateTime: '2023-08-18T09:11:14Z'
message: ReplicaSet "pgadmin-6b5d87f4fc" has successfully progressed.
reason: NewReplicaSetAvailable
status: 'True'
type: Progressing
observedGeneration: 2
readyReplicas: 1
replicas: 1
updatedReplicas: 1
apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress metadata: creationTimestamp: '2023-08-18T091525Z' generation: 1 managedFields: - apiVersion: networking.k8s.io/v1 fieldsType: FieldsV1 fieldsV1: fspec frules {} manager: rancher operation: Update time: '2023-08-18T091525Z' name: pgadmin namespace: local resourceVersion: '6831' uid: a8f9088e-f11d-438b-97c9-f23bdd53f838 spec: rules: - host: pgadmin.hkedev.net http: paths: - backend: service: name: pgadmin port: number: 5050 path: / pathType: Prefix status: loadBalancer: {}