File tree 2 files changed +21
-0
lines changed
internal/controller/standalone_pgadmin
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,19 @@ func pod(
118
118
Name : "PGADMIN_LISTEN_PORT" ,
119
119
Value : fmt .Sprintf ("%d" , pgAdminPort ),
120
120
},
121
+ // Setting the KRB5_CONFIG for kerberos
122
+ // - https://web.mit.edu/kerberos/krb5-current/doc/admin/conf_files/krb5_conf.html
123
+ {
124
+ Name : "KRB5_CONFIG" ,
125
+ Value : configMountPath + "/krb5.conf" ,
126
+ },
127
+ // In testing it was determined that we need to set this env var for the replay cache
128
+ // otherwise it defaults to the read-only location `/var/tmp/`
129
+ // - https://web.mit.edu/kerberos/krb5-current/doc/basic/rcache_def.html#replay-cache-types
130
+ {
131
+ Name : "KRB5RCACHEDIR" ,
132
+ Value : "/tmp" ,
133
+ },
121
134
},
122
135
VolumeMounts : []corev1.VolumeMount {
123
136
{
Original file line number Diff line number Diff line change @@ -96,6 +96,10 @@ containers:
96
96
97
97
- name: PGADMIN_LISTEN_PORT
98
98
value: "5050"
99
+ - name: KRB5_CONFIG
100
+ value: /etc/pgadmin/conf.d/krb5.conf
101
+ - name: KRB5RCACHEDIR
102
+ value: /tmp
99
103
name: pgadmin
100
104
ports:
101
105
- containerPort: 5050
@@ -279,6 +283,10 @@ containers:
279
283
280
284
- name: PGADMIN_LISTEN_PORT
281
285
value: "5050"
286
+ - name: KRB5_CONFIG
287
+ value: /etc/pgadmin/conf.d/krb5.conf
288
+ - name: KRB5RCACHEDIR
289
+ value: /tmp
282
290
image: new-image
283
291
imagePullPolicy: Always
284
292
name: pgadmin
You can’t perform that action at this time.
0 commit comments